zend-framework

Zend Framework: Login password hash, email validator?

老子叫甜甜 提交于 2019-12-11 09:55:51
问题 I have searched and can not find the right answer, so I'm hoping I can be pointed in the right direction. I'm working on a login, we are storing the email as well as password in a table. Password is MD5'ed in the table, email is not. Under the Login form: class Application_Form_Login extends Zend_Form { public function init() { $this->setName('signupForm'); $this->setMethod('post'); $this->setAction('/User/Login'); $id = new Zend_Form_Element_Hidden('id'); $id->addFilter('Int'); $emailAddress

How to Pass Array from Zend Dom Query Results to table

不打扰是莪最后的温柔 提交于 2019-12-11 09:55:03
问题 I am querying a URL for columns YEAR, RATING and I want to insert those two into a database. E.g. YEAR RATING 1992 9.2 2000 9 1999 8 . . . . . . . . So, I am writing script like: $url = 'BLA BLA '; $data = file_get_contents($url); $dom = new Zend_Dom_Query($data); $year = $dom->query('.secondaryInfo'); $rating = $dom->query('.ratingColumn'); How to insert both of them in a database??? for ( .... What do I have to write here?) $parse = new Application_Model_Parse(); $parse->createImdb(array(

zend paginator make other links and Action Calling concatinating with the URL

你。 提交于 2019-12-11 09:46:57
问题 I am NEW to ZF .i used zend paginator in my first project .its working fine that is switching b/w pages with right result but the problem is that i have other links too in that view have a look to my view <?php include "header.phtml"; ?> <h1><?php echo $this->escape($this->title);?></h1> <h2><?php echo $this->escape($this->description);?></h2> <a href="register">Register</a> <table border="1" align="center"> <tr> <th>User Name</th> <th>First Name</th> <th>Last Name</th> <th>Action</th> </tr>

How to add a rule to the Zend URL mapping and compose multiple MVC paths?

梦想的初衷 提交于 2019-12-11 09:45:25
问题 This is because I want to develop a web platform with more than one application in the same project. In any MVC web application we should have this default URL schema: domain / controller / action / parameters 1: In Zend, what can I do (in which files) to change this schema to add the application name before the controller name? Expected Result: domain / application / controller / action / parameters 2: How can I implement the consequences of this new URL block in terms that I will separate

how to use Zend_Auth to authenticate user when uploading using ckeditor plugin pgrfilemanager

坚强是说给别人听的谎言 提交于 2019-12-11 09:36:23
问题 Hello Good People !! I have a web application (my first of this type) based on Zend Framework 1.11.12 ( upgraded from 1.10.8) using "modular approach" folder structure i mean by that all the modules are under application/modules . i used Doctrine 1.2.4 i also use library folder for all the third party libraries including ZF except 2: CKEditor and PGRFilemanager. pgrfile manager for uploading files to images folder from an admin panel. here is globally my file structure. /application /configs

Slow postgresql queries in Zend

对着背影说爱祢 提交于 2019-12-11 09:32:33
问题 I am using Zend 1.12 with postgresql database. I am also using Zend_Db_Table_Abstract interface for accessing my database. My code (simplified): class Application_Model_DbTable_Images extends Zend_Db_Table_Abstract { protected $_name = 'images'; public function getImage($id) { $row = $this->fetchRow("id = $id"); return $row; } } Then I use it like this: $db = new Application_Model_DbTable_Images(); $img = $db->getImage(10); The thing is that this call takes just too long. In my pgAdmin this

how to load css and javascript files from a module in Zend Framework 1?

自古美人都是妖i 提交于 2019-12-11 09:04:38
问题 i have the fallowing structure /app application/ configs/ modules/ default/ controllers/ layouts/ views/ forms/ profile/ controllers/ layouts/ views/ forms/ assets/ css/ js/ images/ library/ public/ css/ js/ images/ uploads/ how can i load js and css files from /application/modules/profile/assets/... ? and use something similar with $this->view->headLink()->appendStylesheet('path/to/file'); any ideas on this issue? 回答1: The HeadLink view helper only manages the references to CSS files which

Send email SMTP from localhost with WAMP setup

流过昼夜 提交于 2019-12-11 09:00:35
问题 I'm trying to configure my php.ini file so I can send emails from 'localhost' in my dev environment using PHP. I no longer have access to an open SMTP server, and Gmail no longer works with their new SSL setup. I've done a lot of research and seen lots of "solutions" here and elsewhere, but they don't work. I've tried installing local SMTP servers (hMailServer asks for a password to install, Free SMTP Server doesn't work, etc). Does anyone know of a free SMTP server I can setup in my php.ini

ZendX_JQuery or Zend_Dojo?

浪子不回头ぞ 提交于 2019-12-11 08:52:30
问题 In Zend_Framework there is ZendX_JQuery and Zend_Dojo. I don't know which one is better and which one is easier to use if I have not much knowledge of JQuery or Dojo? I can spend time learning JQuery or Dojo, but I don't know which one is better choice for Zend Framework and why. Thanks 回答1: None of theme. Mixing PHP code and Javascript code is a bad idea. http://zend-framework-community.634137.n4.nabble.com/Discontinuing-Maintenance-of-ZendX-JQuery-Suggest-drop-for-2-0-td3221855.html 回答2: I

accepting user uploads best practices!

此生再无相见时 提交于 2019-12-11 08:47:25
问题 Im trying to add a multi page form, in php with zend framework, where users can list an item to my site. On the first page they enter details about the item(which is then stored in session), page two they can upload images, and then page three they can confirm the listing. If they confirm then the listing is added. What is the best way to achieve this with regards to allowing users to upload images? I am going to either use SWFUpload or uploadify, but should i add the images straight to the