I am running into this as well (rev 15472).
When using multiple controller directories and
Zend_Application_Module_Bootstrap bootstraps it recurses through...
{main}( ) ../index.php:0
Zend_Application_Bootstrap_BootstrapAbstract-bootstrap( ) ../index.php:49
You could make a view helper. Here's mine, you'd need to adjust to taste:
class My_View_Helper_IsAllowed extends Zend_View_Helper_Abstract
{
public function isAllowed($resource = null, $privilege = null)
{
$front = Zend_Controller_Front::getInstance();
if
what I did so far, but I'm not happy with all those 'if/else'
clauses in my view script. I was hoping for a better way.
Chris Martin wrote:
You could make a view helper.
--
View this message in context:
http://www.nabble.com/Restricting-display-of-links-to-non-authorized-pages
Steven Szymczak wrote:
I have a login form with just two fields for username and password.
There are length and regex validators attached to both, but what I would
like to do is return a single generic login failed message if any of
the validators fail. How might I go about
The following self-contained example works fine for me in my environment. Try
it on yours, it may help to narrow the problem down further:
public function imgtestAction()
{
$this-_helper-layout-disableLayout();
$logo =
Rob Allen-3 wrote:
Out of interest, do you have a .htaccess file in your project root
folder to redirect all traffic to the ./public?
My index.php/.htaccess setup is modified a bit...
I have an .htaccess file in my project root folder that rewrites all
requests to a index.php which
^public/.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
Chris Martin wrote:
My index.php/.htaccess setup is modified a bit...
I have an .htaccess file in my project root folder that rewrites all
requests to a index.php which is also in my project root folder. For any
images/css/js/etc. that I
nwhiting wrote:
Hello,
I am using the Zend_Form and am Having quite a few problems with the
decoration.
What I am trying to achieve is get the form to render with the following
html output of something like this
div class=something
div class=something
label/label
Steven Szymczak wrote:
Every one of my action controllers has an init() function that pulls a
config object from the registry and uses it to set some paths used
throughout the site (e.g.):
public function init() {
$view_cfg = Zend_Registry::get('SITE_CFG');
Edward Haber wrote:
3) Is there a problem with the current version of the
Zend_Form_Element_File? The element doesn't appear to print with the
row decorator.
I am also seeing this problem in the release-1.6 branch (rev 11673)...
I've created an issue report:
Nick Lo-2 wrote:
On the issue note I was also wondering whether the issue I pointed
out with the Word characters could be seen as a Zend_XmlRpc_Server
issue or merely a note about filtering out the data properly. Either
way it would be less of an issue if it was possible to define
Nik,
Sorry for the plagiarism, your wording was perfect. I just wanted to add
some additional details to the question, as it pertained to my tests.
Hopefully someone has some pointers. :) It may end up that an issue needs to
be submitted to the Zend Tracker.
Nick Lo-2 wrote:
Hi Chris,
My XML-RPC Server method returns an array of structs, such as:
struct[]
{
int $id,
string $name,
dateTime.iso8601 $created_dt
}
/**
* GetNames
*
* @return array
*/
function GetNames()
{
$ret = array(
array('id'=1, 'name'='Jack', 'created_dt'=1191877812),
13 matches
Mail list logo