Use WordPress to develop a web application

I plan to develop a web application in which there will be many static pages (about, help, contact, etc.) And other dynamic pages for the application.

Most of the time I use CakePHP to develop any of my applications, but for this project I was thinking about using WordPress as the basis for my applications. The reason is that it will be easy to create static pages in WordPress (it is easy to write the contents of static pages), and also because user registration in WordPress already exists (I do not need to create it).

But on the other hand, CakePHP is easy for me, and I will focus on building my application, rather than exploring a new infrastructure.

Let me know what you think. Should I use WordPress as the core of my application or use CakePHP?

PS: my application will mainly be a search engine using Sphinx to search for big data in a database and display results for users and some other simple PHP (dynamic) pages.

+3
source share
9 answers

One option worth considering is to configure WordPress to serve your static pages (so as not to waste time re-implementing the CMS for this content) and use CakePHP to develop a dynamic application that is the core of what you are creating.

, /CSS WordPress CakePHP, .

- WordPress phpBB , :

, (CSS HTML) , WordPress ( ), ( ) , CakePHP , , .

WordPress , , /, , .

+3

. ;

(PS: WordPress , 18 - )

1 - "WordPress - CMS/, "

"Microsoft - ".

. (, Microsoft , . : , , , , , , .)

WordPress , CMS/ , . , , WordPress : 1) / ; , . 2) WordPress - (, ..) " ", CakePHP, CodeIgniter .. , , WordPress, WordPress.

2 - WordPress MVC, .

, .

MVC - , . , , . , ( ) , .

UI- WordPress ...

MVC, ; WordPress MVC .

3 - WordPress .

.

, WordPress PHP- (- ). , , , .

WordPress , , .

;

, 3434533- / -. WordPress.

, .

+13

, , , CakePHP, CakePHP.

, WordPress Pods CMS, ( "pods") WordPress.

Pods CMS , Pods UI, WordPress Admin ( / pods).

PHP (, ), Pods CMS , , WordPress. , SQL, WordPress (, , , ..), , .

WordPress " ", , WordPress. WordPress ( , ), .

, WordPress , (, WordPress), . WordPress, , WordPress, (, WP Super Cache).

+1

WordPress ( ). CakePHP .

CakePHP WordPress ( ). (, Post).

:

/app/database.php:

class DATABASE_CONFIG {
    // ...
    var $wp = array(
            'driver' => 'mysql',
            'persistent' => false,
            'host' => 'localhost',
            'login' => '<wp username>',
            'password' => '<wp password>',
            'database' => '<wp database>',
            'prefix' => 'wp_',
    );
}

/app/models/post.php:

class Post extends AppModel {
    var $primaryKey = 'ID';
    // Could define relations
}

, :

class XxxController extends AppController {

    function index($postName) {
        $this->set('post', $this->Post->findByPostName($postName));
    }

}

HTML :

<?php echo $post; ?>

: http://code.google.com/p/cakephp-wordpress/.

+1

WordPress - , CMS. ( ). , WordPress .

PHP , , WordPress . , , - CakePHP, ? , , Toro ( , Kohana CakePHP; ).

0

, CakePHP - , , , -, , , , , .

WordPress , , WordPress. .

0

WordPress - WP, , WordPress. , .

, WordPress -, , ( , ). . , WordPress - PHP, PHP, , . ( , ), , . , CakePHP.

0

, PHP- WordPress ( , CMS WordPress /). , , , :

  1. (/ )
  2. : <?php/* Template Name: WhateverYouWant */?>
  3. /wp-content/themes
  4. WordPress WhateverYouWant
0

cakePHP wordpress

0

Source: https://habr.com/ru/post/1783027/


All Articles