Companheiros e companheiras,
Estou com uma bomba, literalmente, nas mãos. Desenvolvi um sistema para uma
empresa e o mesmo precisa imprimir etiquetas através de uma impressora Argox
OS 214TT. Falei com o suporte técnico que me informou que o programa
BarTender, que acompanha a impressora, gera um
Thanks.
I tried this configuration:
define ('BASE_URL', env('SCRIPT_NAME') . '?'); - old: define
('BASE_URL', env('SCRIPT_NAME') );
$uri = env('PHP_SELF') . env('QUERY_STRING'); - old: $uri = setUri();
And this is the result now: http://www.mydomain.de/index.php?/main/index
I checked the
Hi,
Thanks for the tip I\ll try and use it today and see if it works.
I actually do not use the object name it was just to simplify the
example...
Thanks again,
Ita
On May 30, 4:46 pm, AD7six [EMAIL PROTECTED] wrote:
Ita wrote:
Hi,
In my DB I have 3 tables
objects, users votes
You are
On 31 mayo, 08:19, Ita [EMAIL PROTECTED] wrote:
Hi,
Thanks for the tip I\ll try and use it today and see if it works.
I actually do not use the object name it was just to simplify the
example...
Yeah, that's often a bad idea ;). Tell it like it is and some
ambiguity is eliminated.
foobar,
Thanks for your reply, I had been looking that post before wirting
that question.
I can't find the implemention of the IFRAME... nobody has an example
code on how to use the IFRAME??
Thank you very much
Best Regards,
Rohman
--~--~-~--~~~---~--~~
You received
seems kind of messy way for a simple task... oh wells i will soldier
on
On May 31, 3:51 pm, [EMAIL PROTECTED] wrote:
You Have 2 chance to accomplish this task
1. You can build fake field in your model afterFind() function
function afterFind( $result ) {
$result = parent::afterFind( $result
Hi,
here is the link to my code.
http://bin.cakephp.org/view/1152843346
I need to query the database based on the data the user enters.
I have a multiple select and a few checkboxes.
The multiple select is to query the database with equipment having
owner names as those selected.
the checkbox is
anybody??? please!
t.
On 28 Mai, 23:07, thomahawk [EMAIL PROTECTED] wrote:
I am doing my first cake app. and had a go with the cache and the
simple user authentication examplified in the user guide. My problem
is, however, that as soon as I turn on cache, my check for a session
variable is
I want confirm password to be validated. (Both password and confirm
password should be same)
views:
Password
?php echo $html-tagErrorMsg('Client/password', 'Password is
required.') ?
?php echo $html-input('Client/password', array('size' =
'10'))?
I have the same result and it's working. What you want is urls without
any interrogation mark ?
According to the ticket, Cake does not work without mod_rewrite under
CGI, and you've just written Apache/1.3.33 (Unix), Server API: CGI,
PHP Version 4.4.7. I am afraid you'll always need the '?' to
Okay, had to ask: Any ideas on supporting Google Gears? It would
appear to be simple for Active Record to support the Google Gears
extension of sqllite.
Cake seems like the perfect candidate to drive adoption of this
offline tech.
--~--~-~--~~~---~--~~
You
Hi,
I was reading the description of the various authentication components/
code that the bakery offers and honestly I am a bit confused.
I don't need groups, I just need that a user can edit his own page but
not other pages. (simple one)
which one should I use?
I posted a problem I had yesterday and now thats its solved I began to
question my DB structure.
What I have:
Users, Comments, Votes
A user can enter a comment to the system and other users can vote if
the like or dislike the comment.
Initially I created 3 tables, 3 views, 3 models and 3
Hi,
I try it, works fine for XML and RSS !
I would like to add a json extention ...
I add a json folder in my views/[model] and a default.ctp layouts in
layouts/json folder.
I even make an empty JsonHelper class.
Bu when I call http://localhost/cake_1_2/portfolios.json
it return me the same
What do you mean with doesn't work.
For All: Be more exhausting when you place a question
It could be this.
if(($this-data['Client']['password'])!=($this-data['Client']['confirm_pass
word'])) {
$this-Client-invalidate('confirm_password');
return;
}
-Messaggio
Thanx for the tip, my problem is solved.
In our httpd.conf file contained the following option: Options -
FollowSymLinks
After removing that option it worked.
Now I've got a tip back:
The first thing you have to do is reading your apache log file It
gave very clear the solution to my
Are you running with DEBUG 0 in your app/config/core.php? If so, then
once a table structure is cached it is not re-read for a long time.
So, either delete the files in app/tmp/cache, or just set your DEBUG
to 1 or higher for at least one page request - in either case this
will rebuild all the
I changed the code. Its working (Showing validation error message for
password and confirm_password.)
code:
controller:
function index()
{
if(!empty($this-data['Client'])) {
if($this-Client-isConfirm('password', $this-data['Client']
On 30 mayo, 20:35, uolax [EMAIL PROTECTED] wrote:
Thanks so much for any time with this:
Forest-hasMany-Trees
trees-belongsTo-Forest
Do you really have 2 models named forest and tree? I hope not.
Try this approach:
bind a hasOne association for tree to your forest model, give it a
I tried to reply to one of the earlier threads on this topic, but for
some reason, Google did not present me with a 'reply' link.
So, I've referenced them here, and am starting a new thread.
On May 31, 2:19 pm, macfurax [EMAIL PROTECTED] wrote:
I try it, works fine for XML and RSS !
I would like to add a json extention ...
I add a json folder in my views/[model] and a default.ctp layouts in
layouts/json folder.
I even make an empty JsonHelper class.
Bu when I
Hi,
I'm defining new regex validators in cake/validator.php file. I have
worked with regex in other projects but indeed I don't understand some
issues of the regex that was defined in cake by default.
Example:
define('VALID_EMAIL', '/\\A(?:^([a-z0-9][a-z0-9_\\-\\.\\+]*)@([a-z0-9]
Hi All,
I am tyring to generate a select list in an edit view - all very basic
stuff. I am however getting the wierdes result to my query.
diagnosis_controller
(edit)
$this-Diagnosis-id = $id;
$this-data = $this-Diagnosis-read();
$this-set('conds',$this-Diagnosis-Condition-generateList());
controller: categories
function view($id = null) {
$this-set('category', $this-Category-read(null, $id));
$conditions = Product.category_id = .$id;
$paginationParameters = array();
$paginationParameters['controller'] =
I am calling $this-Member-findAll(null, 'Member.id') on a database
of 8000 records and am receiving the following error:
Allowed memory size of 16777216 bytes exhausted (tried to allocate 782
bytes) in /home/web88/html/cake/libs/model/datasources/dbo_source.php
on line 312
I assume this error
Make use of the parameters listed here:
http://api.cakephp.org/class_model.html#63ade7d3c6d03c83ab53a224e23ad9dd
(conditions,fields,recursive)
so you only request the stuff you need
On May 31, 1:25 pm, StinkyTofu [EMAIL PROTECTED] wrote:
I am calling $this-Member-findAll(null, 'Member.id') on
On 31 mayo, 13:25, StinkyTofu [EMAIL PROTECTED] wrote:
I am calling $this-Member-findAll(null, 'Member.id') on a database
of 8000 records and am receiving the following error:
Allowed memory size of 16777216 bytes exhausted (tried to allocate 782
bytes) in
Floyd wrote:
I don't understand:
- Why is used a double escape \\ bar instead of a single bar \
I think bacause with a single slash in a string you mean that you want
to escape the following character. So \\ stands for escape \
character.
- What is the meaning of A(?: at start of regex
-
On 5/31/07, StinkyTofu [EMAIL PROTECTED] wrote:
I am calling $this-Member-findAll(null, 'Member.id') on a database
of 8000 records and am receiving the following error:
Allowed memory size of 16777216 bytes exhausted (tried to allocate 782
bytes) in
Ok I'll give it a try.
I thougth that with ajax cake return the HTML generated by the view
bypassing the layouts ?
By the way what bare it's use for ?
On 31 mai, 12:42, R. Rajesh Jeba Anbiah
[EMAIL PROTECTED] wrote:
On May 31, 2:19 pm,macfurax[EMAIL PROTECTED] wrote: I try it, works fine
Can you give some instructions?
save http://bin.cakephp.org/saved/17539 as app/models/behaviors/
upload.php
then in your model, ex post:
?php
class Post extends AppModel
{
var $name = 'Post';
var $actsAs = array('Upload' = array(
Davide wrote:
It comes in my mind: Luke, use the source... But if someone else has
an answer that can avoid me the source :)
I was looking in the source and I found that at line 117 of
cake/libs/view/helpers/cache.php[1] there's an If statement If I
comment the testing (leaving the code inside
Hey,
Luckly I saw this post at the time I was refactoring my image upload
facility, but at the moment I can't get it to work, it keeps failing
on saving the image. Here is how I have it set up:
Model:
class Image extends AppModel
{
var $name = 'Image';
var $actsAs =
Just to bring my contribution, the solution you found can be an
endless solution. If in few weeks your number of record increases by
300%, you would have to increase the memory limit again (which is not
unlimited). Maybe you could keep your export by looping (using page
and limit as AD7six
You explanation is not so clear, but I think you mean that the
generateList returns only the id and not the 'Condition' field ? If
so, generateList is by default making the array of the fields named
'id' and 'name'.
As you might not have a 'name' field, you can set it into the model or
pass
I strongly recommend you to read:
http://bakery.cakephp.org/articles/view/creating-reusable-elements-with-requestaction
It's on frequent discussions.
On May 30, 5:17 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
oops
On 30 mei, 21:51, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Dear
Hi,
its YARQ, so i try to keep it short.
the paginator gives me links like this:
/articles/index/page:8
i have a route for the articles like this:
$Route-connect( 'Artikel/', array( 'controller' = 'articles',
'action' = 'index' ) );
this route works if someone requests /Artikel/, but not if
Bare/ajax routes are deprecated. Not to mention crappy-looking. Use
parseExtensions().
On May 31, 6:42 am, R. Rajesh Jeba Anbiah
[EMAIL PROTECTED] wrote:
On May 31, 2:19 pm, macfurax [EMAIL PROTECTED] wrote: I try it, works fine
for XML and RSS !
I would like to add a json extention ...
Helly bakers,
I hope this is not a strange/stupid question, but (i think) i didn't
find the answer in the cake manual (conventions).
I have a controller for link categories.
Classname: LinkCategoriesController
Filename: link_categories_controller.php
But what's the controller name?
same here, nothing helped so far
On May 31, 1:09 am, Mirko [EMAIL PROTECTED] wrote:
I have exactly the same problem.
All I get is a link with nothing but controller name in it: a href=/
products/
Greets, Mirko
--~--~-~--~~~---~--~~
You received this message
Hi all,
I've setup up a pagination following Andy's great tutorial and it
works perfectly. But when I change the function name from index() to
admin_index(), I rename the layout from index.thtml to
admin_index.thtml and I activate the CAKE_ADMIN routing, AJAX load a
new entire page (with the
hi, my problem is:
I have in sql:
--
-- Estructura de tabla para la tabla `historialcuotas`
--
CREATE TABLE `historialcuotas` (
`id` int(11) NOT NULL auto_increment,
`lancha_id_resta` int(11) NOT NULL, (foreign key table lanchas)
`lancha_id_suma` int(11) NOT NULL, (foreign key table
Thanks,
I think it may now have something to do with the php.ini and
include_path configured in the app/webroot/index.php
Other Templates are being included correctly. dump.thtml seems a
unique-ish case, referenced in the cake/libs/view/view.php and is
referenced via the LIBS define.
Hi,
I'm trying to use the session component of cakephp inside a behaviour
but this is not loaded by default. That means that I can't do:
$this-session-isValid()
I was searching for a solution but I didn't found. I suppose that I
can pass the session component to the behaviour like a
Ok, I already solved the problem (^-^)
It was easier that I though... just i couldn't see well the concept
before.
Thanks anyway,
Rohman
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to
In the next time I try what you suggest me :D
On 31 Mag, 14:48, dardosordi [EMAIL PROTECTED] wrote:
Can you give some instructions?
savehttp://bin.cakephp.org/saved/17539as app/models/behaviors/
upload.php
Very good news! I have to upload images and if it's possible to create
a thumb is a
I got it!
The problems was in the plugin. It force to use no layout and this
make no cache. I've added /app/plugins/rss/views/layouts/rss.thtml
with this simple code
?php echo $content_for_layout; ?
and then in /app/plugins/rss/controllers/rss_controller.php I've
substituted line 86 from
Ohh, sorry ...
'link' should be plural
LinksCategoriesController
links_categories_controller.php
:-), Christoph
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send
Thx Davide,
I don't think the double slash escapes \ character, so wouldn't be a
valid email.
The second part, I don't understand the relationship preg_match
function with these symbols. I used this function correctly without
these some times.
No, you are not misunderstanding the problem, and thankyou for your
response!
$this-set('conds',$this-Diagnosis-Condition-generateList(null,
null, '{n}.Condition.id','{n}.Condition.condition'));
entering that in my controller results in a sql syntax error
Query: SELECT `Condition`.`id`,
On May 31, 6:50 pm, nate [EMAIL PROTECTED] wrote:
Bare/ajax routes are deprecated. Not to mention crappy-looking. Use
parseExtensions().
snip
I do not see that is mentioned in source; only the webservice
deprecation is mentioned. BTW, it doesn't look crappy; for me the
crappy part is
I've always used lowercase-underscore.
class ActivityTypesController is accessed at /activity_types
Preloader wrote:
Ohh, sorry ...
'link' should be plural
LinksCategoriesController
links_categories_controller.php
:-), Christoph
I do the following steps:
- I create the Behaviuor and I call it upload.php
- I insert into the model of the table in the DB the var actsAS
- I create a table in the DB with this SQL: CREATE TABLE `images` (
`id` int(11) NOT NULL auto_increment,
`building_id` int(11) NOT NULL,
`file`
I have tried a few more thing and no luck. Has anyone put together a
test file for checking configuration issues?
On May 25, 2:12 pm, Merc [EMAIL PROTECTED] wrote:
Currently, I am running from /b13ed.com/app/webroot/. I used your
suggested .htaccess and no improvement. Any other ideas?
Thank
hi i am a new cakephp user trying to follow the ibm tutorial but i
have a problem when i try to register a new user at
http://localhost/cake/ibm/users/register
when i press register i am redirected to http://localhost/users/register
and this returns a 404 not found error. it seems to me that
Davide wrote:
...
Which would be the best way to solve this? However I'm still
investigating.
A quick solution to be tested. I've tested a bit but need to be tested
more: in cake/libs/views/helpers/cache.php
260 ?' ;//. $content;
261 $content = preg_replace(/((\\?)|(\\?))/,
262
I try calling model/controler.ajax ( I'm using CakePHP 1.2.x.x) and it
return the same page as without the .ajax ?
Do I have to provide ajax view and layouts ? I see some in the libs/
view/templates I thougth they will be used ...
On 31 mai, 15:50, nate [EMAIL PROTECTED] wrote:
Bare/ajax
as anyone wrote a helper yet?
I have to ask because I am not any good with php
On 29 Mag, 21:12, Tane Piper [EMAIL PROTECTED]
wrote:
Ifsimplepieis a Class, you could include it in your vendor
directory, and then write a helper for it:
Function myfunc()
{
vendor('simplepie');
hi,
i have this threaded table - branches
and i would like to cover the usage of individual branches with 1.2
ACL behavior
class Branch extends AppModel {
var $actsAs = array('Acl'='controlled');
function parentNode() {
return
I am building an app to track my reading list. I have a Book table
(id, title, author) and a Queue table (book_id, position), with a
model set up for each table.
When I try to remove a book from the queue, using this code in my
controller:
$this-Queue-del($book_id)
the delete fails because the
Here are the notes I have collected so far on using i18n in 1.2...
Internationalization (i18n)
* at top of controller: uses('L10n');
* create /app/locale/eng/LC_MESSAGES/default.po (French is fre/
fra)
o http://www.loc.gov/standards/iso639-2/php/code_list.php
* create
Thank you both for your response.
I know these aren't the real class names and whatnotjust trying to
put my code in the best hypothetical situation. It's not really forest
and treesit's courses (forest) and subjects these courses include
(trees). A course can have multiple subjects. i.e.
Oh and I meant bind IN a controllernot to.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send
This is a shot in the dark, but if you work on a Mac, it may be your
problem. I downloaded the Cake folder, unzipped it and uploaded it,
but in that process of uploading did not upload all the . files to
the server. It's a pretty easy problem to fix but it escaped me for a
while. Check and
Oh and I meant bind IN a controllernot to.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send
This is fantastic. Thanks!
On multiple web hosting environments Cakephp has been the quickest,
most compatible install I've found for frameworks. It just plain
works. Now it's time to just learn it. ;)
On May 29, 4:29 pm, DJ Spark [EMAIL PROTECTED] wrote:
by changing this:
function
Well I'm really sorry that you're so intent on breaking the model that
HTTP was designed for. Go read up on REST, learn about the
significance of URLs, custom HTTP headers, client implementations, and
the relative importance of your opinion (that last one is unrelated to
REST). Then come back
Try /controller/action.js instead.
On May 31, 11:17 am, macfurax [EMAIL PROTECTED] wrote:
I try calling model/controler.ajax ( I'm using CakePHP 1.2.x.x) and it
return the same page as without the .ajax ?
Do I have to provide ajax view and layouts ? I see some in the libs/
view/templates I
Oh and I meant bind IN a controllernot to.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send
I am developing an events registration Web application that collects
event specific information from registrants and stores the information
in a database table. The application works by assigning an id to each
new event then using this id as the name of the table that will hold
registrants'
Oh and I meant bind IN a controllernot to.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send
hi,
I have an aplication that depends on a session variable defined in
another application, both applications were developed with cakephp.
Is there any way to read a session variable that was defined in
another application??
--~--~-~--~~~---~--~~
You received
Ok, thanks
On May 30, 11:23 pm, gwoo [EMAIL PROTECTED] wrote:
Components help out controllers with common business logic, so first
intialize, then modify in beforeFilter, then startup some automagic.
--~--~-~--~~~---~--~~
You received this message because you
Davide,
I wrote the RSS Plugin. I didn't give much thought to caching at the
time. Another route you could take: The RSS Class that is used has
caching built in. You could put something in the controller to use
check that cache before doing all the SQL to regenerate the feed.
If you figure
When using the Scaffolding and declaring a $displayField in a foreign
model, is there a way to specify two fields (i.e. var $displayField =
'first_name' . 'last_name';)?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
no
On 5/31/07, gentleJuggernaut [EMAIL PROTECTED] wrote:
When using the Scaffolding and declaring a $displayField in a foreign
model, is there a way to specify two fields (i.e. var $displayField =
'first_name' . 'last_name';)?
--
(the old fart) the advice is free, the lack of
I think you need to name the two Lanca models differently like
http://bin.cakephp.org/view/501804416
see if that helps
On 5/31/07, franciscodg [EMAIL PROTECTED] wrote:
hi, my problem is:
I have in sql:
--
-- Estructura de tabla para la tabla `historialcuotas`
--
CREATE TABLE
I am using CakePHP version: 1.2.0.5137alpha
When sending emails with EmailComponent, I would like to refer to the
background images in my css with background-image: url(cid:...);,
rather than some web-based url. Does anyone know how to do that with
EmailComponent?
Thanks,
Greg
In theory, yes, that should work fine. Fortunately for you, if you
already have an existing application in place, you should be pretty
easily able to make that determination independently.
On May 31, 1:51 pm, christianandradet [EMAIL PROTECTED]
wrote:
hi,
I have an aplication that depends on
Sounds like a plan. Proofs of concept are always welcome at
https://trac.cakephp.org/
On May 31, 4:50 am, Makea [EMAIL PROTECTED] wrote:
Okay, had to ask: Any ideas on supporting Google Gears? It would
appear to be simple for Active Record to support the Google Gears
extension of sqllite.
I am developing an application that dynamically creates database
tables. I know CakePHP is setup in such a way that one model is used
for one table, but I am wondering if there is a way around this.
Because the tables are created dynamically I will not be able to
generate the code for the model
Supporting Google Gears? Well, there is a lot of interesting JS
libraries out there, but my personal opinion is: if something is easy
to do with cake, doesn't belong to CakePHP core code.
Are you trying to say that
- you can not use cake as server-side part of application which uses
Google Gears
Seems to me, after several hours, that I've solved adding
if ($this-RequestHandler-isAjax())
$this-render('admin_index', 'ajax');
at the end of the admin_index() function in the controller. But it
sounds very strange, because it should be RequestHandler's duty to do
that. Am I wrong?
On May 31, 2007, at 2:47 PM, Paolo Gabrielli wrote:
Seems to me, after several hours, that I've solved adding
if ($this-RequestHandler-isAjax())
$this-render('admin_index', 'ajax');
Wont $this-RequestHandler-setAjax($this) do that?
-- John
It doesn't work right away, but something like this does work:
In my player model:
function afterFind($results) {
foreach ($results as $key = $val) {
if( isset( $val['Player'] ) ) {
$results[$key]['Player']['full_name'] =
$val['Player']['first_name']
On May 31, 10:50 pm, John David Anderson (_psychic_)
[EMAIL PROTECTED] wrote:
On May 31, 2007, at 2:47 PM, Paolo Gabrielli wrote:
Seems to me, after several hours, that I've solved adding
if ($this-RequestHandler-isAjax())
$this-render('admin_index', 'ajax');
Wont
That would be an awful lot of tables in your database and it seems
like it might lead to some potentially hairy code. Have you
considered saving the event information as arrays and then saving the
serialized arrays into a single table? I would think it would be a
lot easier to extract varying
Hello, quote from
http://manual.cakephp.org/chapter/models
afterFind
Use this callback to modify results that have been returned from a
find operation, or perform any other post-find logic. The parameter
for this function is the returned results from the model's find
operation, and the return
I ask the server admin at the hosting company - mod_rewrite is
enabled.
Normaly it should be working without any changes or not?
Regards,
Arndtinho
On 31 Mai, 10:41, Nicolas Rimbeau [EMAIL PROTECTED] wrote:
I have the same result and it's working. What you want is urls without
any
Okayhere's what I did.
Used AD7six's advise and did a quick unbind from a hasMany and bind a
hasOne and did a findAll. This gives me all of the ID's that have the
course that was searched for. I then put these ID's in an array and
set them as part of the conditions for the next findAll and
In my model i have:
var $useTable = 'proizvodi';
// The model can't be pluralized with english
But when I do:
$form-create('Proizvod', array('action' = 'dodaj'));
// Proizvod = Product, dodaj = add
The output is:
form id=ProizvodAddForm method=post action=/admin/proizvods/
dodaj/
And
FormHelper::select() doesn't issue a label tag, just the select tag.
Yes, and not even surrounding div, but why???
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email
Thanks [EMAIL PROTECTED],
Your response handles the translation of static 'interface' elements
of the application. For example translations of static menu items in
multiple languages based on the language setting made the user. I mean
something different.
What I mean is for example a database
thank you very much...
the problem is solved :)
On 31 mayo, 14:36, Samuel DeVore [EMAIL PROTECTED] wrote:
I think you need to name the two Lanca models differently like
http://bin.cakephp.org/view/501804416
see if that helps
On 5/31/07, franciscodg [EMAIL PROTECTED] wrote:
hi, my
There is an assumption in the IBM tutorial that I don't see
explicitly stated anywhere in the document, but is made
nonetheless. The tutorial assumes that the application you're
building with the tutorial sits at the root of your site. That's
unfortunate, because, as it's a demo app, it's
hi,
im trying to add the selectTag. the select field shows up but i get
the following warning:
Notice: Undefined offset: 1 in C:\Apache\xampp\htdocs\cake\cake\libs
\view\helpers\html.php on line 950
?php echo $html-selectTag('status_id', $status, null, array(),
null, false, false); ?
select
yeah i have that cant understand why this is happenning, i have the
following :
?php
class UsersController extends AppController
{
function register()
{
if(!empty($this-data))
{
if ($this-User-validates($this-data))
Hi i am trying to complete the ajax todo list tutorial at
http://grahambird.co.uk/cake/tutorials/ajax.php
However i am getting this error after editing the default.thtml file
in layouts folder:
Notice: Undefined variable: javascript in W:\www\cake\cake\libs\view
hi,
1. i think this error is due to this line :
?php echo $html-selectTag('status_id', $status, null, array(),
null, false, false); ?
try to replace fieldname with Modelname/fieldname.
2. do you want to select delivered as a default value ?
On Jun 1, 10:32 am, pete [EMAIL PROTECTED] wrote:
hi,
for this line :
?php echo $html-selectTag('status_id', $status, null, array(),
null, false, false); ?
try to use 'Modelname/fieldname' the notice should be removed.
^^
metasan
On Jun 1, 10:32 am, pete [EMAIL PROTECTED] wrote:
hi,
im trying to add the selectTag. the select field shows
1 - 100 of 104 matches
Mail list logo