So I read up and then I created this function in my Bootstrap.php
public function _initLog()
{
$resource = $this->getPluginResource('db');
$db = $resource->getDbAdapter();
$columnMapping = array('lvl' => 'priority', 'msg' => 'message');
$writer = new Zend_Log_Write
Ehask71 wrote:
> So I read up and then I created this function in my Bootstrap.php
>
> public function _initLog()
> {
> $resource = $this->getPluginResource('db');
> $db = $resource->getDbAdapter();
> $columnMapping = array('lvl' => 'priority', 'msg' => 'message');
>
Maybe Google Maps would be a solution for you?
It´s not really a database, but it´s nice to use anyways :)
sinkingfish wrote:
>
> Hi,
>
> Not strictly zf related but thought it would be a good place to ask. Does
> anyone know of a good source for an international database containing
> countri
These are flat files that you can edit into an importable format:
http://geonames.usgs.gov/domestic/download_data.htm
They are US only and contain every place name in the US that appears
on a USGS map. For places outside the US go here:
http://earth-info.nga.mil/gns/html/namefiles.htm
Personall
You have extended the run() method of Zend_Application_Bootstrap_Bootstrap in
your Bootstrap.php.
Your run() method needs a call to the following before you dispatch:
$front->setParam('bootstrap', $this);
You will now be able to access your log resource as required:
this->getInvokeArg('bootst
'Twas brillig, and Mark Wright at 09/06/09 08:37 did gyre and gimble:
These are flat files that you can edit into an importable format:
http://geonames.usgs.gov/domestic/download_data.htm
Personally I've had good experience with http://www.geonames.org/
Their data is world wide and contains l
Hello,
I am interested in creating a form with a calendar element. I decided to
use jQuery date picker, but I don't know how to integrate it into the
form. Bellow is the form code:
$form = new Zend_Form();
$form->setName('form_add_service');
$form->setMethod('post');
I'm building a TinyMCE form element for which I've written a view helper
(extends FormTextarea). It has stuff like setToolbarLocation() etc. What I'd
like is to proxy these calls through the form element so I can say:
$tinymce = $this->createElement('tinymce', 'content');
$tinymce
->setToolb
On Tuesday 09 June 2009 12:39:59 Dalibor Karlović wrote:
> I'm building a TinyMCE form element for which I've written a view helper
> (extends FormTextarea). It has stuff like setToolbarLocation() etc. What
> I'd like is to proxy these calls through the form element so I can say:
>
> $tinymce = $th
That was it. I really didnt need to extend run() Anyway to make it work I
added
$front = $this->getResource('FrontController');
$front->setParam('bootstrap', $this);
$this->frontController->dispatch();
Then in my Action Controllers
$logger = $this->getInvokeArg('bootstrap')->getResourc
Matthew Weier O'Phinney-3 wrote:
>
> The bootstrap uses what is considered a "local" registry, versus a
> global static registry. As a result, you cannot use Zend_Registry's get,
> set, or isRegistered methods in order to locate items, as these operate
> on the global, static registry.
>
> As
On Mon, Jun 8, 2009 at 8:54 PM, Benjamin Eberlei wrote:
> otherwise, zend_test is doing integration testing and using that soley for
> test-driven-development is probably a bad idea, since you test too many
> components in conjunction rather than unit-testing a single component in
> isolation.
>
On Mon, Jun 8, 2009 at 2:50 PM, Dalibor Karlović wrote:
> On Monday 08 June 2009 13:52:53 Matthew Weier O'Phinney wrote:
> > I'd *love* to see someone tackle the DB schema => Zend_Form problem
> > sometime -- it's something I envisioned from the outset when developing
> > Zend_Form, but never had
Without knowing anything about your specific situation, I'll try to answer
as best as I can about Zend Framework and Rails.
Presumably you already know PHP, so with Zend Framework you only need to
learn the framework. Therefore your speed of development at first will be
higher compared to Rails.
ah, you are correct, can you log an issue in the isssue tracker and
assign to me?
Effectively, we need to add type support to the php class properties,
should be easy to accomplish. Right now its assuming everything is a
string.
I should be able to tackle this soon.
-ralph
CocoRambo wrote
Hi guys,
There was an issue raised requesting that Zend_Paginator output something by
default without setting a view partial. The easiest way to do this is to
include a default view partial. The question is: where? I was thinking
Zend/View/Helper/PaginationControl/default.phtml. Or is there som
hello,
i installed zendframework 1.8 and getting welcome page running.
using the next steps on the quickstart i get error message that resource
"view" could not found.
validating the code some times doesnt find any error...
may someboy got an idea?
--
View this message in context:
http://www.nab
was a litle syntax error
please ignore :-)
--
View this message in context:
http://www.nabble.com/zend-framework-1.8-quickstart-tp23944929p23945929.html
Sent from the Zend Framework mailing list archive at Nabble.com.
I was trying to search the on-line documentation for details about the
isXmlHttpRequest() method. With the language set to English, the
search returned no results. When I set the language to All, I got
twelve results: sections 12.4 and 12.8, each in six different
languages -- including English. I s
Hi,
I noticed, that Zend_Form_Element does only set up a basic validator and
ignores other properties.
In detail:
I am working with Zend_Form and doing the same like described in
documentation example 23.12 [1].
I set up a translator in the init() method of "My_Form", which will
translate the "Z
Thank you all for replies, so what i have thought i ll make these CRUD code
manually. But the problem what i have now is the how to associate the
modules with admin area and how to make these easily addable. My current
solution is this.
Structure how the module will be
application/modules/news
app
If it helps I only got this problem when I used roles made from email
addresses (eg b...@test.com). Though I haven't found how to fix it yet.
--
View this message in context:
http://www.nabble.com/Problem-storing-ACL-in-registry-tp12424279p23950968.html
Sent from the Zend Framework mailing list
Hi all,
I've been wondering this for a while now about how Twitter/Myspace and now
Facebook creates what they are calling "Vanity URLs"
So, their users use their username as their url.
ex. www.mydomain.com/myusername would route to their user profile.
So my question is, how can you accomplish
I would like see best practice blueprint or example for implementing modules
in 1.8.
A user registration and login management module would be ideal.
Any suggestions? Thanks in advance.
- Steve W.
--
View this message in context:
http://www.nabble.com/User-Registration-and-Login-Management-M
$front = Zend_Controller_Front::getInstance();
$router = $front->getRouter();
$router->removeDefaultRoutes();
$router->addRoute(new Zend_Controller_Router_Route(
':username',
array(
'module' => 'user',
'controller' => 'profile',
'action' => 'view'
)
))
You should be able to place the Javascript and tell it to use date_start
Here is one of my templates
vehicle.phtml
$(document).ready(function(){
$('#ship_date').datepicker({dateFormat: 'yy-mm-dd'});
});
vehicleForm->render()?>
Of course make sure you have the included files in the la
yay great!
Ralph Schindler-2 wrote:
>
> I should be able to tackle this soon.
>
--
View this message in context:
http://www.nabble.com/Zend_CodeGenerator_Php_Property---Array-tp23922419p23954802.html
Sent from the Zend Framework mailing list archive at Nabble.com.
On slide 29, Ralph provided the following in application.ini
http://www.slideshare.net/ralphschindler/zend-framework-18-features-webinar
;application.ini
resources.navigation.pages.dashboardIndex.label = "Dashboard"
resources.navigation.pages.dashboardIndex.controller = "dashboard"
resources.na
there are classes for Authentication and ACL that u can use. i have tried
using them but now they seem alittle wierd to use. as in the Zend_Auth
provides the Identity which i think is the user id or name i cant rmb but
they shld include a usergroup field for use with Zend_Acl. plus i must
always q
Hey Wenbert,
not sure if you're interested in using an XML file instead, but I did a 20
minute video on Zend_Navigation last week that covers breadcrumbs, menus and
generating a sitemap:
http://www.zendcasts.com/zend_navigation-dynamically-creating-a-menu-a-sitemap-and-breadcrumbs/2009/06/
Best,
Hi all,
I am using PHP with Zend for quite a period.
I want to have my MySQL server on a different server than my web server.
(This web server has Apache and my PHP zend application on it).
I want to use database in this new server in my application.
As I am using Zend I dont have any statement li
hmm any tips or tutorials on that i guess i use Zend_Amf ... but hmm i will
not be using MVC anymore right? just normal procedural programming? or is
there any frameworks or practices? AS3 has classes too maybe i need to map
them to ZF Classes/Models?
i am thinking of making a Flash AS3 - ZF web
Thank you Jonathan! XML file is good. Thank you for your screencast. I have
created a post related to this and your screencast. Hope it's okay!
Jonathan Lebensold wrote:
>
> Hey Wenbert,
>
> not sure if you're interested in using an XML file instead, but I did a 20
> minute video on Zend_Naviga
Hi Benjamin,
> otherwise, zend_test is doing integration testing and using that soley for
> test-driven-development is probably a bad idea, since you test too many
> components in conjunction rather than unit-testing a single component in
> isolation.
Yep, I came up with that as well. For TDD
Hi guys,
I have a number of view scripts that are cut and paste across almost all of
my view directories, basically templates that hold code to load a structural
html / tabs / etc. These files are almost all identical, so there is a very
obvious case for removing these duplications, along with pr
35 matches
Mail list logo