September 2, 2010 by bsagols
Sometimes (often ?!) you just copy / paste some code without taking time to deeply understand it… I use to do this when I’m running out of time (always ?!)…
This way of doing things is not perennial… At all. The day you will be stuck because you didn’t take that time, always comes.
This is what happened with the rewriting rules of a standard Zend Framework project, I just copied / pasted them.
It worked. Until the day I got stuck. I needed to understand why some requested files were passing though the rewriting logic when others weren’t.
Let’s shade some light on these rewriting rules:
1. RewriteCond %{REQUEST_FILENAME} -s [OR]
2. RewriteCond %{REQUEST_FILENAME} -l [OR]
3. RewriteCond %{REQUEST_FILENAME} -d
4. RewriteRule ^.*$ - [NC,L]
5. RewriteRule ^.*$ index.php [NC,L]
(more…)
Category: Zend FrameworkTags: htaccess, mod_rewrite, zend framework | Comments (3)
August 12, 2010 by bsagols
As I was desperately browsing the web for some information about how to configure the Zend_Loader_Autoloader in stand-alone mode, I found myself a bit confused about the different approaches of the Zend Autoloader.
I’ve identified 3 cases of using the Autoloader:
- Stand-alone: Let’s say this is the case when you do not use the MVC model of the Zend Framework, but you need to load classes “on the fly”
- Non-modular ZF MVC application
- Modular ZF MVC application
These are the 3 cases where the configuration of the Autoloader differs.
(more…)
Category: Zend FrameworkComments (2)
May 20, 2010 by bsagols
I wrote a simple javascript function that’s building a default Zend Framework URL and redirect the document to it.
My concern was to be able to send parameters through a javascript redirection to the Zend Framework. Basically instead of appending the parameters in the default way (¶m1=value1¶m2=…), it builds a compliant Zend Framework URL:
www.example.com/controller/action/param1/value1/param2/value2
(more…)
Category: Zend FrameworkTags: javascript | Comments (0)
by bsagols
Because web sites are getting more and more sophisticated/complicated, what about learning the Unified Modeling Language (UML) ?
http://en.wikipedia.org/wiki/Unified_Modeling_Language
Official site: http://www.uml.org/
And why not get an official certification ??
http://www.omg.org/uml-certification/overview.htm
Category: UncategorizedTags: thoughts, uml | Comments (0)