Basically, I'm about to write a php script in the Zend Framework that's ONLY purpose is to handle user registration and offer AUTOMATIC MONTHLY subscriptions so that I can add other php driven scrips that they'll have access to based on their subscription status.
Does something already do this? I'm looking for barebones, not something l...
I am trying to create a login system with Zend that when a user tries to access a restricted page they will be taken to a login page if they aren't signed in. The issue I'm having is getting the URL they were trying to access before hand. Is there a Zend Function that will return everything after the base Url? For example, I need "mod...
Here you have a screenshot from my table structure:http://img64.imageshack.us/img64/54/pictx.jpg
On my site I have two fields for the search, one for the city(ort) and one for industry(branche), and if I search for: Frankfurt verschierung, let's say that in the field for city I have: Frankfurt and in the field for industry(branche) I ha...
My default 'zend' app has this default structure
/zend + webroot
/application
/config
/library
/public
.htaccess
index.php
and the default .htaccess redirects the various controller/action details via ./public/index.php
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILE...
Hello everyone,
First I had problems with getting date's into my db see here. Now I have problems with getting it into the database on the right format.
This is my code:
public function editAction()
{
if($this->_request->getParam('id')){
$id = $this->_request->getParam('id');
$data = $this->_evtObj-...
Ok. This version of select works:
$select = $this->select();
$select->setIntegrityCheck(false);
$select->from(array('u' => $this->_name),
array('u.id', 'u.username', 'u.avatar_path',
'(SELECT COUNT(*) FROM media WHERE user_id = u.id) media_count'));
$where = "u.status = 'active' ...
The context is that I don't want to use Zend MVC - controllers, helpers, decorators etc - that's overkill for what I am writing.
I've scoured the jQuery site plugins section and these issues bother me most:
I have to search a lot for plugins - it is tedious.
I have to check dependencies with jQuery versions. Thankfully I decided to s...
My website uses the zend framework and runs in a sub folder, for example: http://www.example.com/sub/folder. Now I want to prepend my css links with /sub/folder/ to make the css load in pages like http://www.example.com/sub/folder/product/abc, I thought I found a view helper to do this BaseUrl but BaseUrl seems only to work in actual vie...
I would like to edit an element description in the action controller. I'm trying to do it like this:
$form->element->setAttrib('description', '');
But it doesn't work. Any ideas?
...
I'm currently migrating from a class that stores lists of countries, states & provinces in the form of arrays to using Zend's Locale data in the form of ldml xml files. These ldml files provide localised lists of countries, currencies, languages - so I'm not exactly sure where I should store US States, ( Canadian Provinces ), Prefixes - ...
Disclaimer: you might need to install
a font/typeface which supports
Japanese if you see messed up
characters.
I'm trying to replicate what I've been doing so far with setlocale and strftime:
setlocale(LC_ALL, 'ja_JP.utf8');
$time = mktime();
echo strftime('%x', $time), '<br>';
Output:
2010年01月06日
Using Zend_Date - but I...
Hi,
I would like to use Zend Route to treat URI like, http:/US.video.yahoo.com and also http://video.yahoo.com with the same route. For the second proposition i would like that the system tell me that the country that was to "US" in the first one, is now at NULL.
But i don't arrive to have Zend Route Hostname doing regex like stuffs.
H...
Using the Zend Framework, I have a menu and want to put it throughout the application so that I put it in the master layout.
I want to decorate the menu so I add a CSS as follow:
echo $this->headScript()
->appendFile($this->baseUrl().'/css/layout.css');
In CSS it just have the following:
root {
display: blo...
In my View (using Zend_View so the the view is an object), I make calls to object properties and methods to populate the template like so:
<?= $this->user->name ?> // Outputs John Doe
<br/>
<?= $this->user->getCompany()->name ?> // Outputs Acme
<br/>
<?= $this->method() ?> // Outputs foobar
If I make it so that all property requests (...
Hello!
Is it possible in Zend View helper (extends Zend_View_Helper_Abstract) get info about module/controller/action in which that helper was called ?
...
I was trying to get a good hold on Zend Framework API but it proved quite challenging with Modules, Models, Controllers, Views, Actions, ActionHelpers, ViewHelpers, Decorators, and addon libraries like ZendX_JQuery.
That's excluding the 50+ other components !
So I thought a bit about visual (diagrammatic) API navigation.
What I mean is ...
I am trying to get the name of the role of the currently logged in admin. I can get the admin user, but I can't figure out how to query their role name. The Magento docs are weak =/
$usr = Mage::getSingleton('admin/session')->getUser();
Ideas anyone?
...
Hi i use zend_dom. I want to get website shortcut icon(favicon) and stylesheet path with zend_dom query
$dom = new Zend_Dom_Query($html);
$stylesheet = $dom->query('link[rel="stylesheet"]');
$shortcut = $dom->query('link[rel="shortcut icon"]');
Stylesheet query is work but shortcut icon query not work. How i do?
Thanks.
...
I apologize if my title is a bit misleading and it turns out that it's some other class under Zend_Db.
I use the following method of extracting data from a MSSQL:
// $_config contains information about how to connect to my MSSQL server
$config = new Zend_Config($_config);
$db = Zend_Db::factory($config->database);
$sql = "SELECT * FRO...
I am developing a Zend MVC application.
Sometimes I like to echo some text just for quick and dirty debugging. e.g
<?php
class MyClass {}
echo('hello world - yes this script is included');
I can echo 'debug-text' in my bootstrap> But, when text is echoed in my model or controllers it is NOT being rendered in the output.
I am using Z...