Questions tagged [doophp]

Doo is a high-performance MVC-based PHP framework for developing web 2.0 applications rapidly.

DooPHP is a high performance open source PHP framework. Doo framework is one of the fastest PHP frameworks available. It enables developers at all levels to rapidly develop robust web 2.0 applications.

  • MVC based
  • URI routing
  • Extremely simple
  • RESTful API
  • Templating
  • ORM tool
  • Clean IP
  • Cache
  • ACL
  • new BSD
17 questions
1
vote
2 answers

How to start application with DooPHP?

I am starting new application with DooPHP framework, but I don't have any idea, and not getting any clear documentation. So I'm a little bit confused. How to start? Is there any guide how to create model and controller and how to run?
Kartik it
  • 393
  • 1
  • 5
  • 19
1
vote
2 answers

How do I return JSON in a DooPHP Controller?

I'm setting up an AJAX system and I have a controller that I need to return JSON data. In the examples so far, all of the controllers end with a call to the view: $this->renderc( 'interest', $data ); I'd like to return straight JSON for use…
Shamoon
  • 41,293
  • 91
  • 306
  • 570
1
vote
2 answers

PHP MVC Framework : Yii vs DooPHP

I've only experienced with CodeIgniter 1.7 roughly two years ago, quite okay but there were flaws such as you can have only one controller, no redirection to another controller, etc; I was also playing around with CakePHP a little bit but to be…
Michael Mao
  • 9,878
  • 23
  • 75
  • 91
1
vote
2 answers

Clean up array produced by DooPHP

I use DooPHP for my Json service, Everything is ok except 1 problems: Mysql Orm of DooPHP produced unclean result (I had try all config). I have a Model: public $id; public $name; public $content; public $image_small; public $image_large; public…
DzungPV
  • 1,561
  • 3
  • 18
  • 24
1
vote
1 answer

DooPHP: How to output an image from a controller action?

In one of the actions I need to return an image to the user. Is there a way to achieve this with DooPHP? Sample action code: public function view() { $path = $this->params['path']; // contains path to the image // $this->render($path); //…
MK_Dev
  • 3,291
  • 5
  • 27
  • 45
1
vote
0 answers

DooPHP related data in form

i would like to ask if there is any method to render form for related data? e.g suppose we have a financial app. We could have Transactions and Categories (categories hasMany transactions). Transaction Entity id, amount, category_id Category…
can3los
  • 25
  • 10
0
votes
1 answer

Can doophp use autorouting and defined routes together

Is possible use defined routes and autorouting together? Defined routes must have higher priority than autoroutes. I tried to use, but after I set autoroutes on, defined routes dont work at all. index.php leaved unchanged:
neworld
  • 7,757
  • 3
  • 39
  • 61
0
votes
1 answer

Using multiple databases with DooPHP

I'm checking out DooPHP and I can't seem to find how to use multiple database connections simultaneously. I just want to have multiple database objects and use their methods to query the DB. Now I I'm doing this: Doo::db()->setDb($dbconfig,…
donk
  • 1,540
  • 4
  • 23
  • 46
0
votes
2 answers

How can I autoload singleton's in DooPHP?

I'm new to DooPHP, but it's freaking awesome so far. I'm just not sure how to autoload my own classes as singletons. Any help would be greatly appreciated.
Shamoon
  • 41,293
  • 91
  • 306
  • 570
0
votes
2 answers

Can't get simple doophp demo to work, links broken

I follow this doc. http://www.phpbuilder.com/columns//doophp/Jason_Gilmore03292011.php3 doophp seems lightweight and simple. When I run http://localhost/doophp/app/about, I get the result: Oops! This link appears to be broken. How can I fix this?
chenge
  • 1,424
  • 2
  • 14
  • 19
0
votes
4 answers

Code in plain PHP vs DooPhp

I've seen DooPHP is the world fastest MVC framework and I intend to consider this for building mission critical website which is able to handle over 100,000 concurrent users. I have to build my website from scratch on shared hosting and run CPanel…
JohnMax
  • 249
  • 2
  • 4
  • 10
0
votes
1 answer

writing custom query in doophp

I am new to Doophp framework. I would like to write the following SQL query to be executed in Doophp. but I can't find any proper tutorials or reference regarding to this. Query is as follow; SELECT * FROM m_company WHERE comp_id LIKE %$search%…
Naing Lin Aung
  • 3,373
  • 4
  • 31
  • 48
0
votes
1 answer

How to route DooPHP URIs that include querystring?

I need to be able route requests that pass information in the querystring. For example, let's say my application calls /api/company/delete?id=17. How can I route that in DooPHP? I already have a catchall route defined, which is grabbing this…
rstober
  • 1,231
  • 1
  • 10
  • 9
0
votes
1 answer

Complex ORM in DooPHP

I have use DooPhp for a small project. But i have problem with ORM query style. select * from table_name where table ='aaa' order by table_name_id desc To ORM style: $vararray = Doo::db()->find('table_name', array( …
DzungPV
  • 1,561
  • 3
  • 18
  • 24
0
votes
0 answers

DooPHP :: filemtime(): stat failed for VIEW_FILENAME.html

I'm using Doophp framework and its working perfectly on localhost and xampp but I get filemtime(): stat failed for view_filename.html on web host. Is that a host-side error or framework bug? what do you recommend for this error. here is full stack…
mhesabi
  • 1,140
  • 3
  • 22
  • 48
1
2