I'm using Zend Framework 1.11.2. Is this the same issue at
http://framework.zend.com/issues/browse/ZF-9824
On 1 Feb 2011, at 10:14, Ian Munday wrote:
> I'm trying to use Zend_Pdf to load a PDF document, but get the following
> error:
>
> "PDF file syntax er
lar is at
http://www.mail-archive.com/fw-general@lists.zend.com/msg20781.html
Does anyone have any further information that might help me out on this one?
Regards,
Ian
aram
match the defaults?
I wish to do this because I use the Url helper as part of some dynamically
created JavaScript, to which I concatenate another string, and not being able
to get the full url in all instances causes problems.
Regards,
Ian
I'd like to use cache templates rather than simply setting a
pre-instantiated cache - Is there a better way to accomplish this, or is
this a feature that should be added to Zend_Cache_Manager class?
Cheers,
Ian Martin
refuses to upgrade.
Cheers
Ian
2009/11/16 Matthew Weier O'Phinney :
> -- Ian Warner wrote
> (on Monday, 16 November 2009, 10:34 PM +0900):
>> Stefan
>>
>> Spot on
>>
>> However I get this error now:
>> Fatal error: Call to undefined method
>&g
return $indent . implode($this->_escape($this->getSeparator())
. $indent, $items);
}
Ian
2009/11/16 Stefan Gehrig :
> The problem is that you're doing
>
> echo $this->headScript() . PHP_EOL;
> ^
> |
> th
Hi
When I use:
echo $this->headScript() . PHP_EOL;
All that prints out is:
Object id #99
This is a new and unfamiliar server I am deploying on so could be
anything - but any pointed gratefully received
Ian
Thank you - simple answers are the best ones :)
2009/10/16 Matthew Weier O'Phinney
> -- Ian Warner wrote
> (on Friday, 16 October 2009, 11:54 AM +0900):
> > I would like some guidance on best practices for Action Helpers;
> >
> > I currently use th
didnt see anything
at the moment I have the HTML in a method within the controller
Cheers
Ian
t;facebookPhotos($social)->getProfilePicURL();
Or even
$helper = $this->_helper->facebookPhotos($social);
$profilePic = $helper->getProfilePicURL();
Can you give me any pointers on how to invoke and also optimise these little
beauties.
Thanks
IAn
ription is
already set if it is then do not set again.
2009/10/13 Ian Warner
> I would have thought though that there can only be one Description so I
> need to do
>
> // Layout Call
> if ($config->meta->description) {
> $this->headMeta()->setName('desc
ption', 'Words words words.');
Trouble is the Layout call is getting processed afterwards and overwriting
my view call - can I check if something exists in the array first and then
decide to call the layout setName?
Cheers
2009/10/10 Matthew Weier O'Phinney
> -- Ian
to be only one description on the site - but two are
printed the default and the one from the view.
Is this a bug or expected behaviour - if so how do I make sure only one is
visible.
Ian
cache these objects?
What would be the best storage vehicle - I can see that maybe config would
be best stored in Memcache or some similar tool.
Best
Ian
question is how to capture exceptions not associated to controller /
action and push that through to the view also.
Any help on that appreciated.
Ian
2009/8/22 keith Pope
> 2009/8/22 Ian Warner :
> > My code in my bootstrap
> >
> > As you can see my error handler is in a
My code in my bootstrap
As you can see my error handler is in a module
I have
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
to load modules
$this->bootstrap('frontController');
$options = array(
'module' => 'exception',
'controll
test
Julien Huang wrote:
>
> If obtain this :
>
>
> While I want this :
>
>
> --
> Julien Huang
>
>
It is very useful to be able to use this syntax I agree. There are areas
where Zend Framework is over engineered and unfortunately forms is one of
them.
In this case I would drop back to proc
My understanding is that the navigation helpers do what you're thinking
of already. From the documentation[1]: "All built-in helpers extend
Zend_View_Helper_Navigation_HelperAbstract, which adds integration with
ACL and translation."
That said, I haven't actually used t
ah.. this is slowly beginning to dawn on me now! I seem to have it
mostly straight apart from subforms, I can't seem to control subform
decorators from the ini file so my subform is getting wrapped in dl-dt-
dd etc.
On 24 Mar 2009, at 12:14, Ian Spare wrote:
I have to say this
rators.formElements.options.class = "entry"
; Group Decorators
form.displayGroupDecorators.decorator = "FormElements"
form.displayGroupDecorators.formElements.decorator = "HtmlTag"
form.displayGroupDecorators.formElements.options.tag = "tr"
form.displayGroupD
#x27;HtmlTag'),
array('tag' => 'div')), );
$deleteButton = $subform[$counter]->getElement('delete');
$deleteButton->setDecorators($buttonDecorators);
which works fine but it's horrible :( can anyone enlighten me how to
do this in the ini file?
Ian Spare
Email :ian.sp...@me.com,
Website :http://snowslider.net
In answer to my own question, using subforms but with decorators to
stop individual HTML forms being generated seems a reasonable solution.
On 18 Mar 2009, at 08:10, Ian Spare wrote:
I'm struggling a little to get forms to do what I want. I want to
present a list of current record
ord becomes
a separate form and to submit them all at once I'd need some
javascript which isn't ideal.
Really I want to build a single form with each row being the elements
from the config file, is this possible?
Ian Spare
Email :ian.sp...@me.com,
Website :http://snowslider.net
ounting on regular form submission, they need to be the same for
compatibility's sake.
Ian
[1] http://radaschuetz.com/archive/2007/04/21/button-hell/
Bernd Matzner wrote:
Hello,
I'm trying desperately to set a value for a button to generate the following
HTML:
My Label
so that the value
My quick and easy solution was to edit the problem test files to use
long tags :D I'm just wondering if I should file this as a bug against
Zend. Sounds like the answer might be yes?
Thanks,
Ian
keith Pope wrote:
This may just be a problem with the tests not the actual framework,
you ne
re are two tickets [1][2] in the tracker that suggest this should be
handled by a stream processor when short tags are disabled, but it
doesn't seem to be happening within the test suite.
Is this a bug, or do we have something set up wrong?
Thanks,
Ian
[1] http://framework.zend.c
enid.com/server
[openid_response_nonce] => 2008-11-19T13:49:23ZS6e6YZ
[openid_return_to] => http://domain.com/register/openid.php
[openid_sig] => cfYueopSnApXabnFmvTVioIjZGtHiGlfRLMR//qgkv0=
[openid_signed] =>
assoc_handle,claimed_id,identity,mode,ns,ns.sreg,op_endpoint,response
)
)
[_currentIndex:private] => 0
)
How would I go about caching this result? To display the images I simply to
a foreach() loop of the result I get back and when its fresh there are
actually items in the $results array, but when loaded out of cache that
array is empty when I f
Anyone have an ideas on this? Im still stuck...
On Wed, Nov 5, 2008 at 10:26 AM, Ian <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am having problems using Zend Cache and Service Flickr. The problem is
> that the array I get before caching is very different from the cache. Any
>
^\W_]|[-_.!~*'()\[\]])|(?:%[\da-fA-F]{2})|[:@&=+$,;])*)
[path] =>
(?:\/(?:(?:(?:[^\W_]|[-_.!~*'()\[\]])|(?:%[\da-fA-F]{2})|[:@&=+$,;])*)?)+
[uric] =>
(?:[;\/?:@&=+$,]|(?:[^\W_]|[-_.!~*'()\[\]])|(?:%[\da-fA-F]{2}))
)
[_scheme:protected] => http
)
)
)
[_currentIndex:private] => 0
)
Any ideas ?
Thanks
Ian
.. I'm having trouble with some of the terminology and not
positive where to focus my studies. Maybe it's not modules at all.
Any help would be much appreciated, as I keep coming back to this same
issue.
Thanks in advance,
Ian R
*this is not a very realistic example, but seeing it now, I w
Matthew Weier O'Phinney-3 wrote:
>
> -- Ian Rickert <[EMAIL PROTECTED]> wrote
> (on Friday, 03 October 2008, 09:39 AM -0700):
>
>> I can't style the Dijits with CSS! I understand
>> that there are CSS files which are loaded with the Dijits, and
ther do things with ID selectors
in this case, and more than that I am curious as to why this doesn't work.
Has anyone else had issues like this? I'd love a push in the right
direction.
Thanks,
Ian
--
View this message in context:
http://www.nabble.com/Zend_Dojo%2C-styling-dijits%2
our view or layout, and then use Javascript to manipulate it from
there.
Anyone feel free to correct me on any point here, looking to learn.
Ian
--
View this message in context:
http://www.nabble.com/Using-Layout---Views-tp19800314p19800615.html
Sent from the Zend Framework mailing list archive at Nabble.com.
Kinda doesn't make sense to me, so if it actually does make sense, I'd love
to know why.
That having been said, I guess the way to go is to just put some custom
javascript in the oninit, onblue and onkeypress events of the textarea, like
Dojo has built in for those ot
The textarea in question is
labeled "Describe the Event". Also included are Zend_Debug dumps of the
Textarea and SubmitButton.
http://fairmountfair.com/CalendarSubmissions/public/
Thanks so much! I really appreciate your work.
Ian
--
View this message in context:
http://www.nabble.com/How-to-validate-Zend_Dojo_Form_Element_Textarea--tp19690291p19693452.html
Sent from the Zend Framework mailing list archive at Nabble.com.
7;s help. I promise I use the list as a last
resort, and I'm stumped!
Ian
hes but I'm not entirely sure what to call that.
I'm just now picking up speed with ZF, it's just starting to click.
It's very exciting!
Ian
On Sep 24, 2008, at 4:57 AM, Bart McLeod wrote:
Hi Ian,
I would help if you had some line breaks in your message... :-)
Oh. Weird. I don't know why that happened. I've had an amazing
amount of trouble with this list-serv! I don't know why. I assure
you that I can u
uld I
find that way? Or is it a bad idea? I would love if someone could
point me in the right direction here... I'm having trouble with some
of the terminology and not positive where to focus my studies. Maybe
it's not modules at all.
Any help would be much appreciated, as I keep coming back to this same
issue.
Thanks in advance,
Ian R
*this is not a very realistic example, but seeing it now, I wish that
it were.
I have the following:
it keeps erroring saying: SQLSTATE[42S22]: Column not found: 1054 Unknown
column 'round_number' in 'where clause'
So how do I tell the where clause the correct table
$table = new sites_models_Scores();
$select = $table->select()->setIntegrityCheck(f
>
> I have the following:
>
> it keeps erroring saying: SQLSTATE[42S22]: Column not found: 1054 Unknown
> column 'round_number' in 'where clause'
>
> So how do I tell the where clause the correct table
>
> $table = new sites_models_Scores();
>
> $select = $table->select()->s
/controllers
/views
/helpers
very late here now so I thought I would throw this probably simple issue
out.
appreciate the help.
cheers
ian
HI
I have the following code:
Now with the new startMvc enabled my test page simply renders nothing -
with this disabled then I get the correct test view rendering in the
browser.
anyone see anything wrong with what I am doing.
// {{{ createView()
/**
* Method to create the Vi
Matt
Appreciate your quick repsonse again.
I wasnt so much interested in a complete File solution as just being
able to get the HTML output for a file input type.
I.e. --
I look forward to the solution from Thomas though.
Ian
Matthew Weier O'Phinney wrote:
-- Ian Warner &l
ile helper in the Views/Helper/FormFile.php
But how do I access basically
Cheers
Ian
Matthew Weier O'Phinney wrote:
-- Ian Warner <[EMAIL PROTECTED]> wrote
(on Monday, 17 March 2008, 03:28 PM +):
Couple of questions
1. how do I do this - enctype="multipart/form-data"
Hi
Couple of questions
1. how do I do this - enctype="multipart/form-data" to do a file upload
2. How do I set the Columns and rows of a TextArea.
Ian
Hi
Just wondered what the best methods were to do Bulk Inserts
Do I loop through the array
foreach
insert
Or is there some other methods that I can use
I can see - anything else ?
$bugs = new Bugs();
$newRow = $bugs->createRow();
// Data are arranged in an associative array
$data = array(
Helpers that other users have created? i would
find this very helpful to either draw from or submit too - this kind of
thing would not need to be monitored very much as the code snippets
would be small and isolated I would think in most cases.
Again thank you
Cheers
Ian
Matthew Weier
)
)
So its basicalyl getting overwritten later on. Should this happen?
I am not calling new Zend_View anywhere else in my code - so it must be
when the viewRenderer is automatically instantiated
find this very wierd
Ian
Matthew Weier O'Phinney wrote:
-- Ian Warner <[EMAIL
o with addHelperPath and still no luck -
tried this on my ubuntu machine also.
whats the naming convention for helpers, the docs dont give any advice
on what the actual file name should be
ian
Matthew Weier O'Phinney wrote:
-- Ian Warner <[EMAIL PROTECTED]> wrote
(on Sunday, 20 Ja
Sorry I should have said that I tried that also.
Still no luck
Pieter wrote:
Hi Ian,
I think that you should use the $view->addHelperPath() function.
Regards,
Pieter Kokx
Ian Warner schreef:
hi
I am having real trouble trying to set helper paths.
I assume I can place this anywhere in
hi
I am having real trouble trying to set helper paths.
I assume I can place this anywhere in my code structure - I have tried
in bootstrap / controllers and a few other places
Pathing - I think I have this correct below though I although I have
changed this any which way but loose.
eturn void
// */
//function __autoload($class)
//{
//Zend_Loader::loadClass($class);
//}
with
/**
* Require files
*/
require 'Zend/Loader.php';
Zend_Loader::registerAutoload();
And this did the trick
Matthew Weier O'Phinney wrote:
-- Ian Warner <[EMAIL PROTECTED]> wrote
(on S
FileObject, UnderflowException, UnexpectedValueException
Cheers
Ian
omatic Quoting
so
$table = new Bugs();
$data = array(
'created_on' => $foo,
'bug_description' => $bar,
'bug_status' => $var);
$table->insert($data);
are all quoted correctly - if not how is this implemented
probaly asked a thousand times but couldnt see it in the threads on here
Ian
Hi
It doesnt seem as though DB table allows for an update with a limit clause
Is this right?
Is it better to write a qhole query or are there alternatives using the
data models.
Ian
rator
SimpleXMLIterator -> SimpleXMLIterator
SplFileInfo -> SplFileInfo
SplFileObject -> SplFileObject
SplObjectStorage -> SplObjectStorage
SplObserver -> SplObserver
SplSubject -> SplSubject
SplTempFileObject -> SplTempFileObject
UnderflowException -> UnderflowExce
confused on all this it seems that 1.02 has a major BC break for the
autoloader which I am suprised about or I am missing something obvious.
So advice needed on correct code to replace the above, and also how to
install the SPL on windows
ian
would be interested to help organise and create such a group and even
provide some hosting space etc.
As always the hard thing with something like this is starting and
maintaining the momentum.
If anyone is interested then please let me know.
Cheers
Ian
Ralf Kramer wrote:
It would be nice
Bill
Again great answer thank you very much
Maybe a note in the docs then to state that REPLACE wont be supported
and either use the below or create your own query,.
Cheers
Ian
Bill Karwin wrote:
REPLACE is a MySQL-proprietary extension to SQL. It is not supported in
Zend_Db.
In any
Hi
I cant see any documentation on how to acheive a REPLACE command within
DB TABLE
is this possible and if so what is the best practice
Ian
. ' AND ' . parent::getAdapter()->quoteInto('user_id =
?', $userID);
$result = parent::update($data, $where);
getting back an int(0) when i try
ian
queries to find the references?
I just thought i did a query and the references create the joins and the
results are returned to me in a nice package :)
Cheers
Ian
Ian Warner wrote:
Ok now Im confused:
Basically my players table has a TeamID and a PositionID foreign key
/
Ok now Im confused:
Basically my players table has a TeamID and a PositionID foreign key
// Lookup in the database Players that fit this word
$table = new sites_lovefootball_models_Players();
$where = 'MATCH (fname,sname) AGAINST ("Dean")';
ble->fetchRow($where);
echo ''; print_r($row); echo '';
} catch (Exception $e) {
echo 'Failed: ' . $e->getMessage();
}
Ian Warner wrote:
Hi
Is it possible to emulate this in Zend_DB_Table:
SELECT A.team, B.fname,
Hi
Is it possible to emulate this in Zend_DB_Table:
SELECT A.team, B.fname, B.sname
FROM `teams` A, `players` B
WHERE MATCH (B.fname,B.sname) AGAINST ('Derby')
AND A.team_id = B.team_id;
So I have a join here and also some MySQL keywords, I have relations set
up in my objects
Cheers
Ian
elect()->from('tablename')->where(
array(
$db->quoteInto('expr1 = ?', 'value1'),
$db->quoteInto('expr2 = ?', 'value2'),
)
);
The Zend_Db_Select::where() and whereOr() methods support only a string
for the expression, wi
I mistaken as the
above example doesnt contain variables.
Slightly confused now.
Matthew Weier O'Phinney wrote:
-- Ian Warner <[EMAIL PROTECTED]> wrote
(on Wednesday, 22 August 2007, 11:48 AM +0900):
Thank you for the guidance.
The manual is misleading then:
"The second argume
ument can be an array of SQL expressions. The
expressions are combined as Boolean terms using an AND operator."
It kinda reads that I create the array and the AND is substitued
autmoaticall on iteratating the array I pass in.
I think this needs updating to work like Insert also
Ian
Mat
lause'
$this->_getParam('code') = M1F94C3359F8FFC35B
I just dont understand why it is using the value of code as a column
name when it should be using video_id ?
Cheers
Ian
Hi
Ignore this I found it after I wrote it :)
$table = new models_admin_Smspending();
$result = $table->fetchAll();
$result = $result->toArray();
Cheers
Ian
Ian Warner wrote:
Hi
I want to get at the Results Array after selecting my results f
Hi
I want to get at the Results Array after selecting my results from my
MySQL View
at the moment this is in _data but it is protected
So i basically want to get
$result = $table->fetchAll()->toArray();
or
$result = $table->fetchAll()->_data;
or something, I throw this array into my HTML
If you want to go into PEAR and Paging then you are much better looking at
PEAR Structures - which can output a data set in various ways and
provides methods for auto paging also.
Dan Rossi wrote:
Ok i worked on a pear pager wrapper method, it is possibly overkill
still, so need to optimize a
Hi
Modulus is your friend in this circumstance
I use a Foreach to loop through queries, I think a while loop may be
faster though but same applies
so:
$cols = 2;
foreach($result as $k => $v) {
if ($k%$cols == 0){
echo '';
}
}
Hope you get the drift, not tested code
Dan Ros
In my opinion all examples on Zend should use The issue is portability if you move a project to a client server that
doesnt or wont support short tags then you need to change your code, may
as well code it properly in the first place.
I truly believe PHP should remove all short cuts, for one i
Dan Rossi wrote:
Ian Warner wrote:
You need to do some Routing changes then,
Would have to be done on the fly in the controller itself not the
bootstrap or it would effect other controllers, is that possible ?
Its in the bootstrap im not the best person to ask so I would start
another
Dan Rossi wrote:
Aljosa Mohorovic wrote:
what to do if i want my url to look like "pages/edit/1" and then it
translates to:
controller => pages
action/method => edit
and finally some var inside controller/method that contains "1" or
whatever is located after action/method?
how can i accomplish
like you said
module/controller/action/variable/value
so the later are key value pairs basically
so
pages/edit/ei/1
pages/edit/page/1
echo $ei = $this->_getParam('ei');
equals 1
Aljosa Mohorovic wrote:
what to do if i want my url to look like "pages/edit/1" and then it
translates to:
con
short for
also using
I am new to Zend Framework, what does the tag("tables as $tableName): ?>
"/zfgrid/grid/show/table/
pty($v)) {
$plugins[$k] = $v;
}
}
if (!empty($plugins)) {
return $plugins;
} else {
return false;
}
Hope that helps
I do the same for Modules also.
Ian
Hoopes wrote:
Hey,
I'm looking for a way to register plugins for the front
, which if nothing else gives me and my team a consistent
modelling scheme to work towards.
Thanks again
Ian
Bill Karwin wrote:
There are different implementations of views in different RDBMS brands.
Sometimes they store results and sometimes they work by rewriting the
query for you and
but any
pointers appreciated
Ian
Ian Warner wrote:
Hi
Does or will Zend_Db_Table have any methods to handle table related
Views, or should I just implement these through DB_Select?
Also wanted to know best practices on this has anyone coded in any
methods to simplify abstraction?
Che
Hi
Does or will Zend_Db_Table have any methods to handle table related
Views, or should I just implement these through DB_Select?
Also wanted to know best practices on this has anyone coded in any
methods to simplify abstraction?
Cheers
Ian
paging, filtering and header ordering
Would be nice if Zend could create somthing similar to this that binds
in with the framework
Ian
Brian Caspe wrote:
I've had a question about this too, though specifically it doesn't
really deal with pulling one "book". I was wond
Matthew Weier O'Phinney wrote:
-- Ian Warner <[EMAIL PROTECTED]> wrote
(on Wednesday, 13 June 2007, 11:51 PM +0100):
Hi
I want to send the following XMl through HTTP Client as a POST
$XMLDATA = '';
$XMLDATA .= '';
$XMLD
t;setParameterPost(array('XMLDATA' => $XMLDATA));
On the other end I SIMPLE XML this
but I get load of errors due to HTTP client urlencoding and addingslashes.
If it is urlencoding why does it need to addslashes?
anyway to get round this ?
Cheers
Ian
suggestions on this would be appreciated
Cheers
Ian
?
Cheers
Ian
Bill Karwin wrote:
Zend_Debug::dump() outputs plain var_dump() output if it detects that
you're running in a cli environment based on the PHP_SAPI superglobal.
You can also tell it that you're running in a cli environment. You can
use this method:
Zend_Debug::se
Matthew Weier O'Phinney wrote:
-- Ian Warner <[EMAIL PROTECTED]> wrote
(on Thursday, 31 May 2007, 02:22 PM +0100):
Ok to elobarate on this it seems I get this error when:
I forward from one module to anothers underconstruction page:
// Currently simply forwarding t
Hi
When using Zend_Debug::dump since the upgrade --- or maybe since
installing XDEBUG the output now seems to have HTML entties applied so I
get:
How do I get it back to be a pretty output ?
Cheers
Ian
array
'translate_module' =>
object(Zend_Translate)[29]
priv
7;index', 'construction');
would work if and only if the user called page and the under
construction page were in the same module.
Hope this make sense
Cheers
Ian
Matthew Weier O'Phinney wrote:
-- Ian Warner <[EMAIL PROTECTED]> wrote
(on Wednesday, 30 May 2007, 01:59
d
not be needed.
Any help appreciated on this
Ian
x27;]['perPage'],
$options['dataGrid']['page'], $type);
Probably quite hard to debug this, but the error is a little wiered in
the fact that the __autoload(7nts21n58xh) autoload is a garbled.
Anyway if anyone has seen a similar error then please let me know
Cheers
Ian
*/
protected $_helper = null;
helper works
and I must say this is an excellent implementaion I moaned at the last
forward implementation but this does all I need now and the
flashmessenger is excellent.
cheers
Ian
Hi
With some other PDF libraries I can set a text box and then fill text
within it, it will then wrap to the bioundary settings
Is this available in zend pfd if so what methods do I use to acheive this
cheers
ian
me', $site_name)
->setParam('translate', $translate)
->setParam('view', $view)
->registerPlugin(new Zend_Plugin_Auth())
->registerPlugin(new Zend_Plugin_Translation());
what i want to do in a plugin is:
$this->_config= $this->getInvokeArg('config');
is this possible?
Cheers
Ian
st->getParam('module') . '/locale/en.mo', 'en');
}
How do I pass this new translation for use in the controllers - or do I
just register this in the registry and then call back?
Cheers
ian
Ian Warner wrote:
Hi
Just wanted to get some feedback on ways to
lookiing for.
Cheers
Ian
1 - 100 of 143 matches
Mail list logo