Search found 65 matches

by tomatocms
Fri May 14, 2010 8:20 am
Forum: Zend Framework
Topic: query->where and query->orWhere problem
Replies: 5
Views: 12892

Re: query->where and query->orWhere problem

Have you tried this? 1) First, build a condition for all orWhere: $conditions = $this->select() ->orWhere('severity = ?', 5) ->orWhere('severity = ?', 6) ->orWhere('severity = ?', 7) ->getPart(Zend_Db_Select::WHERE); We use getPart() method to get the where condition. As a result, I think we have: $...
by tomatocms
Fri May 14, 2010 8:04 am
Forum: Zend Framework
Topic: Backup
Replies: 2
Views: 855

Re: Backup

If the backup work with public folder and don't with application folder, I think the problem might be caused by the path passed in scandir(...) function. In my opinion, you should you the absolute path. For example, in the public/index.php, you define the absolute path to root folder as follow: // p...
by tomatocms
Tue May 11, 2010 4:08 pm
Forum: Zend Framework
Topic: Zend_Controller code
Replies: 6
Views: 1378

Re: Zend_Controller code

I'm sorry.
I made a mistake and I corrected it in my previous post.
All controller classes have to extend from Zend_Controller_Action class which you can find at Zend/Controller/Action.php file
by tomatocms
Tue May 11, 2010 2:42 pm
Forum: Zend Framework
Topic: Generating PDF with Zend
Replies: 2
Views: 869

Re: Generating PDF with Zend

I hope some useful links help you:
- Understanding the Zend Framework, Part 5: Creating PDF files: http://www.ibm.com/developerworks/edu/o ... zend5.html
- Zend_Pdf tutorial: http://devzone.zend.com/article/2525
by tomatocms
Tue May 11, 2010 2:35 pm
Forum: Zend Framework
Topic: Zend_Controller code
Replies: 6
Views: 1378

Re: Zend_Controller code

All of the controller classes have to extend from Zend_Controller_Action class.
And action of controller are the method of the controller class.
Or maybe I don't understand clearly the issue you faced to.

PS: Can you send me the link that made you confuse?
by tomatocms
Tue May 11, 2010 2:03 pm
Forum: Zend Framework
Topic: Multiple File upload
Replies: 3
Views: 1755

Re: Multiple File upload

I think it's not possible.
You have to create multiple file elements if you want to upload multiple files.

If you want to upload multiple files at the same time, you have to use Flash-based input as SWFUpload or uploadify
by tomatocms
Tue May 11, 2010 1:57 pm
Forum: Zend Framework
Topic: Zend_Controller code
Replies: 6
Views: 1378

Re: Zend_Controller code

Hi friend, Zend Framework has a naming convention that class named A_B_C will be located in the A/B/C.php file. Hence, if you want to view Zend_Controller_Action class, for example, let's open Zend/Controller/Action.php file. And if you want to build website based on Zend Framework, you should follo...
by tomatocms
Tue May 11, 2010 6:46 am
Forum: Zend Framework
Topic: How to change a site into Wordpress
Replies: 2
Views: 916

Re: How to change a site into Wordpress

You should post this question on Wordpress forum.
Also, you can search on Google for "Free Wordpress Theme":
http://www.google.com.vn/search?q=Free+Wordpress+Theme
by tomatocms
Tue May 11, 2010 2:57 am
Forum: Zend Framework
Topic: Zend Router Route Chain question...
Replies: 2
Views: 1313

Re: Zend Router Route Chain question...

My simple solution is that: - Don't use default routes: $frontController = Zend_Controller_Front::getInstance(); $frontController->getRouter()->removeDefaultRoutes(); - And now, you can add your own route as you want: $frontController->getRouter()->addRoute( 'your_route_name', new Zend_Controller_Ro...