Hi,
i'd like to add a media library to a custom-made CMS that is build on Zend Framework and Doctrine. The goal is to build something like Worpress's media library: you can upload media and then attach it to for example an article.
Do you have any suggestions how to start on this? How should the database be designed? Is there any code...
How do you handle dependencies between modules in Zend Framework to create reusable, drop-in modules?
E.g. I have Newsletter module, which allows users to subscribe, providing e-mail
address.
Next, I plan to add Blog module, which allows to subscribe to posts by e-mail (it obviously duplicates some functionality of the newsletter, but ...
i only know wordpress and start to seek another alternative framework, zend. i heard hearsay that zend's better from others framework. if you're "a serous coder", or try to act like one, you need to use it on building your web app.
some said zend is better. But it's subjective. It's fast ans secure. But nobody tell me the reason or at ...
Tue, 23 Sep 2008 05:44:40 -0700
i want to create multiple instances of zend_auth class
as i have two modules
Admin
Front
wats happening is when i login into admin it automatically get logins into
front or vice-versa.
so wat i want is the i can work on both modules separately after
simultaneous authentication.
...
I've been googling around and I can't seem to find anything which explains the use of ZF router well. I've read the documentation on the site, which seems to only talk about re-routing.
I am trying to make the format:
/module/value/controller/action give /module/controller/action passing on value as a parameter
e.g.
/store/johnsmithbig...
I want to start learning Zend Framework. My only concern is that the most recent ZF book on Amazon with good reviews teaches version 1.8 of the framework, which is now about a year old. Do you think it would be a good idea to still pick up that book or is it too old now?
...
With the new Zend_Application/Zend_Application_Bootstrap classes I'm confused as to where I should be applying my custom routes. For example, at the moment I have one route:
protected function _initRouter() {
$router = new Zend_Controller_Router_Rewrite;
$route = new Zend_Controller_Router_Route('news/:id',
array('contr...
There are plenty of PHP frameworks out there as many of you know, and I am interested in your thoughts on this: Zend Framework has so-called action controllers that must contain at least one action method, a method whose name ends in "Action". For example:
public function indexAction() {}
The word "Action" is important, without it you...
Hi. I've got a very annoying problem with my Zend studio.
I have a zend framework project I am working on. The actual zend framework code is inside my project (in library folder) and then ZS seems to reference to its own version of zend framework. As the result, I get 2 versions of the same function/class in my intellisense which is anno...
Hello,
I'm using Zend FW and wanted to make a feed reader. I did the following:
$feed = Zend_Feed_Reader::import('feed://blog.lookup.cl/?feed=rss2');
$data = array(
'title' => $feed->getTitle(),
'link' => $feed->getLink(),
'dateModified' => $feed->getDateModified(),
'description' => $...
I'm trying to get Zend_Mail to send an encapsulated message - as though it's forwarding an email.
$attachedContent = "<h1>H1 Email</h1>";
$emailContent = "<h1>Email Content>";
$mail = new Zend_Mail();
$mail->setBodyText('text content');
$mail->setBodyHtml($emailContent);
$mail->setFrom('[email protected]', 'GAS');
$mail->addTo('kieran...
Am creating an action helper that will require the return value of the
Zend_View_Helper_BaseUrl
How do I go about that?
...
Hi,
Its my 1st App using ZF. As our client requirement i have made separate admin and front panel. Without using Zend_Acl. I have problem when session expires it always takes me on front end log in page . I have tried to solve it by session but it's using single session for both admin anf front panel. I there any way so i can create sep...
XML
<config>
<nav>
<label>Home</label>
<route>default</route>
<module>default</module>
<controller>index</controller>
<action>index</action>
<pages>
<clips>
<label>Clips</label>
<module>video</module>
<controller>clip</control...
Hi!
I wish to set some properties in MyFilter with constructor injection but it seems impossible with Zend_View::addFilter(string $filter_class_name) since it loads a new instance upon usage. MyFilter implements Zend_Filter_Interface.
Can I somehow inject an instance of a filter to an instance of Zend_View?
Closing since it (hopefully...
I am following the Zend Framework quickstart document and got stuck on the .htaccess rewrite rules. I am using this:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
This works find when I acce...
Hi,
I've built a "RSS Feed Reader" module to my application. This module read and store all feeds in my database for future use. I want to know if there is a better and faster way to do that than the code described bellow. This code is executed every 10 minutes in a cron job.
// In my FeedEntries Model
public function fetchNewEntries()
...
As an MVC newb, I keep getting caught up in the details. One in particular is making me pause longer than I'd expect; pagination. Should pagination go in the model, or in the controller?
In case it matters, I'm using ZF, and would like to paginate the results of some SQL data.
...
Hello Everyone,
I have created my own little form element for inputting time's. Since I need this on a few places in my application, i decided to create a seperate element for it.
Here is the code so fa:
class EventManager_Form_Element_Time extends Zend_Form_Element
{
public function init()
{
parent::init();
$...
I have a php site optimized for iphone, its currently running inside of an iframe in a uiwebview objective c wrapper. Everything currently works except for the sessions inside of the iframe, Im assuming this is due to the cross domain issue with iframes and sessions? my solution is to save the sessions to the db. Is this the best solutio...