Trabalhando com arquivos .prn

2007-05-31 Thread Danilo Miguel
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

Re: Pretty URL's

2007-05-31 Thread Arndtinho
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

Re: how can a controller access another model

2007-05-31 Thread Ita
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

Re: how can a controller access another model

2007-05-31 Thread AD7six
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,

Re: Help: Ajax ( Iframe ) Upload

2007-05-31 Thread 浪漫様
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

Re: R: adding extra fields when reading a model

2007-05-31 Thread laptop
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

Querying values from a form

2007-05-31 Thread hashkash
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

Re: Cache renders view before session check

2007-05-31 Thread thomahawk
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

validation

2007-05-31 Thread cake_learner
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'))?

Re: Pretty URL's

2007-05-31 Thread Nicolas Rimbeau
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

Google Gears

2007-05-31 Thread Makea
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

which auth component, system

2007-05-31 Thread sixlaneve
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?

How to model the DB with HABTM

2007-05-31 Thread Ita
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

Re: how to use parseExtensions

2007-05-31 Thread macfurax
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

R: validation

2007-05-31 Thread m.sbragi
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

Re: cake not running on production server

2007-05-31 Thread [EMAIL PROTECTED]
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

Re: Strange DB problem - savefield fails when field name changes

2007-05-31 Thread Grant Cox
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

Re: R: validation

2007-05-31 Thread cake_learner
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']

Re: hasMany findAll alternatives

2007-05-31 Thread AD7six
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

compressing page output

2007-05-31 Thread keymaster
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.

Re: how to use parseExtensions

2007-05-31 Thread R. Rajesh Jeba Anbiah
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

Understanding validator regex

2007-05-31 Thread Floyd
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]

Select list behaviour

2007-05-31 Thread g5Maniac
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());

cakephp 1.2 pagination with parameters

2007-05-31 Thread Copot
controller: categories function view($id = null) { $this-set('category', $this-Category-read(null, $id)); $conditions = Product.category_id = .$id; $paginationParameters = array(); $paginationParameters['controller'] =

Out of memory with FindAll

2007-05-31 Thread StinkyTofu
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

Re: Out of memory with FindAll

2007-05-31 Thread [EMAIL PROTECTED]
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

Re: Out of memory with FindAll

2007-05-31 Thread AD7six
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

Re: Understanding validator regex

2007-05-31 Thread Davide
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 -

Re: Out of memory with FindAll

2007-05-31 Thread Gonzalo Servat
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

Re: how to use parseExtensions

2007-05-31 Thread macfurax
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

Re: Upload a File with CakePHP 1.2.0.5137alpha

2007-05-31 Thread dardosordi
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(

Re: Does cake cache plugins

2007-05-31 Thread Davide
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

Re: Upload a File with CakePHP 1.2.0.5137alpha

2007-05-31 Thread Tane Piper
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 =

Re: Out of memory with FindAll

2007-05-31 Thread francky06l
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

Re: Select list behaviour

2007-05-31 Thread francky06l
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

Re: data from model in a layout via pagescontroller

2007-05-31 Thread dardosordi
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

Routes and Paginator

2007-05-31 Thread BenjaminB
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

Re: how to use parseExtensions

2007-05-31 Thread nate
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 ...

URL conventions - controller name consists of two words

2007-05-31 Thread Preloader
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?

Re: Paginator and custom routes problem (latest 1.2 alpha)

2007-05-31 Thread BenjaminB
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

Pagination works, but not well with admin routing

2007-05-31 Thread Paolo Gabrielli
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

two foreign key in a table

2007-05-31 Thread franciscodg
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

Re: Config CORE_PATH error?

2007-05-31 Thread joe
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.

Using the session component inside a behaviour

2007-05-31 Thread Guadonpost
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

Re: Help: Ajax ( Iframe ) Upload

2007-05-31 Thread 浪漫様
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

Re: Upload a File with CakePHP 1.2.0.5137alpha

2007-05-31 Thread Andrea
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

Re: Does cake cache plugins

2007-05-31 Thread Davide
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

Re: URL conventions - controller name consists of two words

2007-05-31 Thread Preloader
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

Re: Understanding validator regex

2007-05-31 Thread Floyd
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.

Re: Select list behaviour

2007-05-31 Thread g5Maniac
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`,

Re: how to use parseExtensions

2007-05-31 Thread R. Rajesh Jeba Anbiah
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

Re: URL conventions - controller name consists of two words

2007-05-31 Thread Joshua Benner
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

Re: Upload a File with CakePHP 1.2.0.5137alpha

2007-05-31 Thread Andrea
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`

Re: Issue with Sitepoint Article

2007-05-31 Thread Merc
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

redirection problem - ibm tutorial

2007-05-31 Thread rtanz
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

Re: Does cake cache plugins

2007-05-31 Thread Davide
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

Re: how to use parseExtensions

2007-05-31 Thread macfurax
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

Re: using simplepie as a helper

2007-05-31 Thread sixlaneve
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');

acl behavior

2007-05-31 Thread jan.ptacek
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

del() causing findcount() SQL error

2007-05-31 Thread bilh
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

Re: i18n translation in db tables - how to do this like Symfony?

2007-05-31 Thread [EMAIL PROTECTED]
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

Re: hasMany findAll alternatives

2007-05-31 Thread uolax
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.

Re: hasMany findAll alternatives

2007-05-31 Thread uolax
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

Re: Issue with Sitepoint Article

2007-05-31 Thread [EMAIL PROTECTED]
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

Re: hasMany findAll alternatives

2007-05-31 Thread uolax
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

Re: noob: Sorting results from 15min blog tutorial

2007-05-31 Thread loopymonkey
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

Re: how to use parseExtensions

2007-05-31 Thread nate
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

Re: how to use parseExtensions

2007-05-31 Thread nate
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

Re: hasMany findAll alternatives

2007-05-31 Thread uolax
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

Dynamically Create a Model and Bind it to a Table?

2007-05-31 Thread Wole
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'

Re: hasMany findAll alternatives

2007-05-31 Thread uolax
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

session question

2007-05-31 Thread christianandradet
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

Re: Using a Component in controller-beforeFilter in 1.2

2007-05-31 Thread Sarek
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

Re: Does cake cache plugins

2007-05-31 Thread MattC
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

$displayField with two items

2007-05-31 Thread gentleJuggernaut
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

Re: $displayField with two items

2007-05-31 Thread Samuel DeVore
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

Re: two foreign key in a table

2007-05-31 Thread Samuel DeVore
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

EmailComponent inline attachments

2007-05-31 Thread Greg
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

Re: session question

2007-05-31 Thread nate
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

Re: Google Gears

2007-05-31 Thread nate
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.

One Model for Multiple Dynamically Created Tables?

2007-05-31 Thread Wole
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

Re: Google Gears

2007-05-31 Thread jitka
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

Re: Pagination works, but not well with admin routing

2007-05-31 Thread Paolo Gabrielli
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?

Re: Pagination works, but not well with admin routing

2007-05-31 Thread John David Anderson (_psychic_)
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

Re: $displayField with two items

2007-05-31 Thread Falagar
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']

Re: Pagination works, but not well with admin routing

2007-05-31 Thread AD7six
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

Re: Dynamically Create a Model and Bind it to a Table?

2007-05-31 Thread [EMAIL PROTECTED]
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

Re: adding extra fields when reading a model

2007-05-31 Thread Hellbot
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

Re: Pretty URL's

2007-05-31 Thread Arndtinho
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

Re: hasMany findAll alternatives

2007-05-31 Thread uolax
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

$form- create with $useTable (CakePHP 1.2)

2007-05-31 Thread Mirko
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

Re: Suppressing the label in form-select

2007-05-31 Thread Mirko
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

Re: i18n translation in db tables - how to do this like Symfony?

2007-05-31 Thread oleonav
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

Re: two foreign key in a table

2007-05-31 Thread franciscodg
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

Re: 404 while working on IBM tutorial...

2007-05-31 Thread J Wynia
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

selectTag

2007-05-31 Thread pete
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

Re: redirection problem - ibm tutorial

2007-05-31 Thread rtanz
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))

ajax tutorial problems

2007-05-31 Thread rtanz
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

Re: selectTag

2007-05-31 Thread metasan
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:

Re: selectTag

2007-05-31 Thread metasan
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   2   >