hello everyone,
currelntly Im working on some project (based on ZF) and Im wondering if it's possible to turn off one or more modules. By turn off I mean ZF wont load it at all.
To be more precise I would like to turn off one of the exiting app module.
Let say my App contains some modules written by sombody else and I for the time beein...
Hi all,
Can I call a controller with a pre_controller hook.
Something like this, where ControllerHook is a normal controller.
$hook['pre_controller'][] = array(
'class' => 'ControllerHook',
'function' => 'controllerHookFunction',
'filename' => 'ControllerHook.php',
'filepath' => 'hooks',
);
I tried this already, it works ...
Is this possible to do with display groups in Zend Framework?
other ideas on how to do this?
<form>
<fieldset>
<legend>DisplayGroupOuter</legend>
<label for="outer">Outer</label>
<input type="text" name="outer" id="outer"/>
<fieldset>
<legend>DisplayGroupInner</legend>
<label for="inner">Inner</label>
...
I want to call a .php file from the OnClick event.
<input id="Edit" name="Edit" value="Edit Record" type="button" onclick="---call to php file----;" />
The code is show above. I want to call a .php file through Javascript and pass a cookie value in the query string.
...
hello
now i have class
class test{
var $var_test = 'test';
}
how i can get it
i think
$t = new test();
echo $t->var_test;
is this true
...
Hi,
I need a function or a regular expression to validate strings which contain alpha characters (including French ones), minus sign (-), dot (.) and space (excluding everything else)
Thanks
...
Hi everyone,
I'm using php-twitter (Billingham et al) to fiddle with the Twitter API and came up against a wall in terms of using the showStatus function. Most of the time it wasn't showing any status and, when it did, it showed the wrong statues. After much banging of the head against the wall, I discovered that my problem was that t...
Hi,
I am writing a SoapServer with PHP 5.2 to return a list of vacancies to another application. My WSDL doc requires a complex type along the lines of:
<xsd:element name="Vacancies">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Vacancy" type="ns:VacancyType" minOccurs="0" maxOccurs="unb...
I've been developing a web application with PHP and MySQL. The other day, I made some changes to the database and adapted one page to the new table layout but not another page. I didn't test well enough, so the site went online with the error still in the other page. It was a simple MySQL error, and once one of my co-workers spotted it, ...
I have a new PHP project coming up and I want to use a framework. I'm a little intimidated because I don't yet understand the workflow of using a framework, and what I'll need to do differently to get my work done. I'm also concerned about painting myself into a corner if a framework can't do what we need -- for instance in another proje...
In the last couple of websites I made, I implemented a kind of MVC-style controller, I think.
I used mod_rewrite to send everything through index.php, so the url became a querystring.
It worked, but I'm wondering if it's a bit hacky, or just the accepted way of doing things. Is there a better way? I don't want a framework, I want to le...
I am planning to create a simple project management system with PHP/MySQL/Codeigniter.
There will be a super-admin, an admin and around 20 users. User A, B, C...
And there will be around 50 projects. Project 1, 2, 3 ...
User A and B will be able to access project 1 pages, User C, D and F will be able to access project 2 pages etc.
Ca...
we all know that using a group by we can eliminate extra column but then what if i wanted to group item A together. objects related to item A will be shown under the heading item A. but when i use a group by, it would only show one line of object under item A. please dont ask me use count. i just need to show all the objects related unde...
I have a role-based permissions system where I am not sure Zend_Acl is necessary, so I'd like to ask if I am right.
The web applications in question doesn't have a separate admin screens, all controllers/actions are accessible to anyone. So I can't imagine what I can call a "resourse" in such open system.
But some user roles can see gr...
hay
my class
class language{
function merge($filename = ''){
// the path is true
return include_once ('language/'.$filename);
}
}
ok this lang test
en.php
<?php
if (empty($lang) || !is_array($lang))
{
$lang = array();
}
$lang = array_merge($lang, array(
'test' => 'Home Page'
));
?>
if i add
echo $lang[...
Desc Model belongsTo Prod Model. I want that all Prod.Name will appear as checkboxes when adding a new desc, so that user will just click a Prod.Name when adding a new description for it. Like:
<?php
echo $form->create('Desc');
echo $form->checkBox(Prod.Name); // assuming this is the correct code.
echo $form->textArea('Desc.content');
e...
Is it possible to make the website unavailable while editing it, while online?
If so, what is the method called and how is it done?
I have a webhosting company so it's not my own server!
Thanks
...
Is there any way to unpack or extract a zip file with PHP that does not rely on any installed extension? Has anyone written a class or something that can handle it?
Alternatively, is there a solution that uses an extension that is relatively commonly installed on most servers?
I need this to work on as many different servers that I hav...
Hi there!
Can anyone tell me how can I define and use a specific layout for a model (not a template)? I would like to do this for my custom 404 error page.
Thanks in advance,
Best regards!
...
Hello
I will try to explain as well as possible what I'm trying to do.
I have a folder on a server with about 100 xml files. These xml files are content pages with text and references to attachment filenames on the server that will be pushed to a wiki through an API.
It's all working fine 1 XML file at a time but I want to loop throug...