Kohana 3: What are Validate::label and Validate::labels for?
What are the Validate::label and Validate::labels functions for in Kohana 3? What are they meant to be used for? ...
What are the Validate::label and Validate::labels functions for in Kohana 3? What are they meant to be used for? ...
hello all i saw a example for login form same blow code class Form_Login extends Zend_Form { //put your code here public function init($timeout=360){ $this->addElement('hash', 'token', array( 'timeout' => $timeout )); $this->setName('Login'); $username = $this->createElement ( 'text'...
Hi, So i got a problem and really haven't found any solution to this so i hope someone here can help me. I got site with book navigation module. My front page has multiple blocks in it with each block containing book navigation and listing contents of different book. The problem is that I need to open book pages from one block in a new...
Hi, for ($rank=0; $rank<100; $rank++) { printf("Your rank: %d%s", $rank, $suffix); } Is there exist a gettext function to localize $suffix in the general case (any language)? Thank you. ...
I need to run Linux-Apache-PHP-MySQL application (Moodle e-learning platform) for a large number of concurrent users - I am aiming 5000 users. By concurrent I mean that 5000 people should be able to work with the application at the same time. "Work" means not only do database reads but writes as well. The application is not very typical...
Is there some kind a engine for Json in the Zend framework, What I mean is some abstraction that all the Json (ajax) responces go through ? in other words some class to controll all the Ajax calls? ...
How to create a secure login system using PHP Session variables? ...
I am trying to add drop down menus to a drupal theme which uses text sliding door CSS rounding. The current version uses a primary links injection of the span into the a tags, which works fine. But doesn't support drop down menus. Working code: <?php print theme('links', $primary_links, array('class' => 'links primary-links')) ?> I...
Hi all, I have a PHP script to run. If I run it from the command line, it works fine (include path is set correctly). If I want to run it inside Eclipse (Run as script), then the PHP include path of my php.ini is replaced by Eclipse, with all the libraries I've added to the project. I've configured my PHP executable in Eclipse. I've ...
Hello, I have issues with Arabic script inside a PDF document created by UFPDF, that is an extension of FPDF that supports unicode fonts. I have correctly converted Arial font to the format waited by UFPDF, and I have no issue with Unicode special characters in other languages (e.g. French, Spanish, German, etc.) The single characters ...
i have tried to copy euro symbol from Wikipedia...and echo it (in my parent page),at that time it is working.but when i replace the same html content using jquery(used same symbol to echo in the other page).it is not displaying.why is it so..(or is der any way to display the same thing using html)? ...
Hi, How can i find the date difference in hours using php and mysql both. Thanks Avinash ...
I am using config file which contains: config.php define('SYS_TITLE','My Application Title'); I load language local for gettext based on SESSION variable in another file included after the config file is loaded. how to make it something like: echo _(SYS_TITLE); What is the best way to translate the SYS_TITLE without changing much o...
Hi I am using Zend_Framework's Zend_Controller_Action to build a facebook application. I followed the step by step of this blog for guide : http://blog.madarco.net/91/build-a-facebook-application-with-zend-framework/ public function indexAction() { require_once('facebook.php'); $fb = new Facebook('1234567', '7654321'); $user_i...
I am using Phing's dbdeploy task to manage my database schema. This is working fine, as long as there is no errors in the queries of my delta files. However, if there is an error, dbdeploy will just run the delta files up to the query with the error and then abort. This causes me some frustration, because I have to manually rollback the...
I am working on zend framework, PHP and jQuery. I am working on popups sometimes. When any popup is open on the screen, we can still clicks links on webpage behind popup which causes some unexpected behaviour. How can I disable a webpage behind popup. I have seen some web application in which when popup appears then webpage behind popup ...
When I reading the code of CodeIgniter,I found some functions written as follows: function &get_instance() { global $CI, $OBJ; if (is_object($CI)) { return $CI; } return $OBJ->load; } I can understand variable refrence,but I can hardly get this through.Is it necessary to use this function style?And any benefit?...
I need to create a PHP script that works more or less like a licence activation key, once activated then you are good. I have a main site (My website), and I have clients site (Licence Holder Website/also where the php script should be held) I was thinking would cURL Library be my solution to this? or not? or if anyone has a better s...
I am integrating Zend Framework into an existing application. I want to switch the application over to Zend's autoloading mechanism to replace dozens of include() statements. I have a specific requirement for the autoloading mechanism, though. Allow me to elaborate. The existing application uses a core library (independent from ZF), fo...
So here is my problem. I want to redirect name.domain.com/trips/1 to domain.com?username=name&trip=1 using modrewrite. Is this possible? I have the dns set up correctly however - I am unsure about the htaccess file. Can I link all this information to one PHP or do I need to create a directory for every user? Thanks for your help. ...