How to create a multiple of login with Tables Different ? #5729

2015-01-25 Thread Lucas Macedo
I'm trying to create a login system with using two different tables one for the board administrator othe apar customer and am having a problem because both logins use by default the Users table and I'm unable to change .. If they can deem a look at my code https://github.com/luuckx2/cakephp3-M

Problemas com Component Auth

2014-01-06 Thread Lucas Rivoiro
Boa tarde, Sou iniciante em CakePHP e estou a desenvolver um sistema para eu mesmo utilizar. O meu problema começou quando eu passei o sistema para um Servidor Web, hospedado com a HostGator, em uma Hospedagem de Revenda. Quando tento logar na área administrativa no meu computador usando o Wamp

Wordpress blog archive look like in CakePHP

2013-07-31 Thread Helder Lucas
I'm building and application with cakePHP and I'm trying to achieve something like a Wordpress blog archive. Let's imagine that i have this table in my database: - Posts - id - title - body - created - modified and i want the output something like this: 20

Models indirect association, how to retrieve data?

2013-06-07 Thread Lucas Gabriel
How's it going? I have a problem with cakePHP, I'm new to it and struggling with it. Let me pour onto you guys my situation: I'm developing a system for a University here in Brazil. In this sytem I've got the following models: - Country; - State; - City; - University; - Unit; - Class; Ok. and

Re: Webhooks and EventSystem

2013-03-12 Thread Lucas Simon Rodrigues Magalhaes
feira, 12 de março de 2013 17h15min12s UTC-3, Lucas Simon Rodrigues Magalhaes escreveu: > > Has anyone done an application built in CakePHP and EventSystem to consume > webhooks ? > > My problem it's I don't know how to start it. There are a example app that > can sh

Webhooks and EventSystem

2013-03-12 Thread Lucas Simon Rodrigues Magalhaes
Has anyone done an application built in CakePHP and EventSystem to consume webhooks ? My problem it's I don't know how to start it. There are a example app that can show me? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received

Re: How I get the index value using Hash::extract() on this array

2012-12-05 Thread Lucas Simon Rodrigues Magalhaes
cket escreveu: > > This should do it: > > $keys = array_keys(Hash::remove('{n}[check=0]')); > > On Wed, Dec 5, 2012 at 11:50 AM, Lucas Simon Rodrigues Magalhaes > > wrote: > > Array( > > [168] => Array > > ( > > [check] =&g

How I get the index value using Hash::extract() on this array

2012-12-05 Thread Lucas Simon Rodrigues Magalhaes
Array( [168] => Array ( [check] => 0 ) [169] => Array ( [check] => 1 ) [170] => Array ( [check] => 1 ) [171] => Array ( [check] => 1 ) [172] => Array ( [check] => 0 ) ); I try it, $a = Hash::extract($arrayCheckBox

[Run TEST] Erro: Call to undefined method PHPUnit_Framework_AssertionFailedError::getComparisonFailure()

2012-11-24 Thread Lucas Simon Rodrigues Magalhaes
Fatal Error *Erro: * Call to undefined method PHPUnit_Framework_AssertionFailedError::getComparisonFailure() *File: */home/lucas/public_html/eventos-backend/lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php *Line: * 252 Whats wrong? -- Like Us on FaceBook https://www.facebook.com

Re: Error to load a third Libs

2012-10-16 Thread Lucas Simon Rodrigues Magalhaes
I am using cake2.2 Em terça-feira, 16 de outubro de 2012 11h50min46s UTC-3, MaJerle.Eu escreveu: > > your file is .class ??..and tell us which cake u use > -- > Lep pozdrav, Tilen Majerle > http://majerle.eu > > > > 2012/10/16 Lucas Simon Rodrigues Magalhaes > >

Error to load a third Libs

2012-10-16 Thread Lucas Simon Rodrigues Magalhaes
;A4','fr'); $pdf->pdf->SetDisplayMode('fullpage'); $pdf->writeHTML($content); $pdf->Output('test.pdf'); } catch(HTML2PDF_exception $e){ die($e); } The error: Fatal Error*Error: * Class 'HTML2PDF' not found *Line: * 196 *Notice: * If you want to

Re: loadModel

2012-08-29 Thread Lucas Simon Rodrigues Magalhaes
And ... $this->set(compact('games')); Em quarta-feira, 29 de agosto de 2012 08h40min58s UTC-3, Lucas Simon Rodrigues Magalhaes escreveu: > > change this variable $game = $this->Game->find('all'); > to > $games = = $this->Game->find('all&#

Re: loadModel

2012-08-29 Thread Lucas Simon Rodrigues Magalhaes
change this variable $game = $this->Game->find('all'); to $games = = $this->Game->find('all'); in IndexsController . Em quarta-feira, 29 de agosto de 2012 05h08min00s UTC-3, Nareh Tarasyan escreveu: > > Hi people. > I'm a beginner in CakePHP. > And I need help. > > I try to use loadModel

Re: How can I put my $id in $this->redirect

2012-08-24 Thread Lucas Simon Rodrigues Magalhaes
Uhuhuuulll Thnx dude!!! Em sexta-feira, 24 de agosto de 2012 15h11min35s UTC-3, ivnrmc escreveu: > > OR > > $this->redirect('/customers/view/'.$id); > > :-) > > > > 2012/8/24 Lucas Simon Rodrigues Magalhaes > > > >> >>

Re: How can I put my $id in $this->redirect

2012-08-24 Thread Lucas Simon Rodrigues Magalhaes
1. //$id = $this->request->data['ProductDetail']['customer_id']; 2. forget this line comment $id = $this->request->data['ProductDetail']['customer_id']; Em sexta-feira, 24 de agosto de 2012 15h01min02s UTC-3, Lucas Simon Rod

Re: How can I put my $id in $this->redirect

2012-08-24 Thread Lucas Simon Rodrigues Magalhaes
ith $this->redirect($this->referer()); > > > 2012/8/24 Lucas Simon Rodrigues Magalhaes > > > >> I doing it: >> >> $this->redirect(array('controller'=>'customers','action' => 'view',$id)); >> >> but d

How can I put my $id in $this->redirect

2012-08-24 Thread Lucas Simon Rodrigues Magalhaes
I doing it: $this->redirect(array('controller'=>'customers','action' => 'view',$id)); but do not work. Invalid customer *Error: * The requested address *'cadastros/admin/customers/view'* was not found on this server. -- You received this message because you are subscribed to the Google Grou

Re: Error to save in database

2012-08-13 Thread Lucas Simon Rodrigues Magalhaes
k escreveu: > > > > On Monday, August 13, 2012 8:54:04 PM UTC+7, Lucas Simon Rodrigues > Magalhaes wrote: >> >> I don't understand it. I define the correct names of Model Files and the >> cake don't recognize the model User? How? > > > you might ne

Re: Error to save in database

2012-08-13 Thread Lucas Simon Rodrigues Magalhaes
I don't understand it. I define the correct names of Model Files and the cake don't recognize the model User? How? Em segunda-feira, 13 de agosto de 2012 09h41min39s UTC-3, Lucas Simon Rodrigues Magalhaes escreveu: > > I have a model User.php in plugin, look my gist[1

Re: Error to save in database

2012-08-13 Thread Lucas Simon Rodrigues Magalhaes
the AppModel instead of User > model. And so "registerValidate" is being sent directly to the > database as a query. > > Is this model in a plugin? What is the file name? What does the first > line have? eg. > > class User extends Appmodel { > > On Fri,

Error to save in database

2012-08-10 Thread Lucas Simon Rodrigues Magalhaes
hii guys!!! I have a error[1] in any save data of my actions in my UserController. The error is in my function to validate[2] a add[3] user [1] http://pastebin.com/M3hSWD9k [2] http://pastebin.com/9Wg1Aujm [3] http://pastebin.com/rZctnxFX -- You received this message because you are subs

How to use ClassRegistry::getObject('view') in cake 2.2?

2012-07-10 Thread Lucas Simon Rodrigues Magalhaes
I'm using this, $view =& ClassRegistry::getObject('view'); in my Helper but does not work. I imported App::uses('ClassRegistry', 'Utility'); but nothing ... and my debug( $view =& ClassRegistry::getObject('view')); always return false -- Our newest site for the community: CakePHP Video Tutor

[OT] How to use Sphinx docs?

2012-07-06 Thread Lucas Simon Rodrigues Magalhaes
hello, Somebody already used the Sphinx for generating documentation of their systems in cakePHP? like a book.cakephp.org? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with

Re: AuthComponent, set userScope in appController

2012-07-04 Thread Lucas Simon Rodrigues Magalhaes
Thaks. Solved Em terça-feira, 3 de julho de 2012 18h32min58s UTC-3, cricket escreveu: > > On Tue, Jul 3, 2012 at 8:31 AM, Lucas Simon Rodrigues Magalhaes > wrote: > > The error appear in this line: > > 'scope' => array('User.status' => Configu

Re: AuthComponent, set userScope in appController

2012-07-03 Thread Lucas Simon Rodrigues Magalhaes
en declaring properties in class > > use this in AppController: > > public function beforeFilter() { > parent::beforeFilter(); > $this->Auth->userScope = Configure::read('User.ACTIVE'); > } > -- > Lep pozdrav, Tilen Majerle > http://majerle.eu >

AuthComponent, set userScope in appController

2012-07-02 Thread Lucas Simon Rodrigues Magalhaes
Hello, I have a little problem in my auth component in cakePHP 2.2. I set in my bootstrap.php [1] many CONSTANTS, example,Configure::write('User.ACTIVE', 'A'); and I wanna to use this constant in my auth component, but when I used Configure::read('User.ACTIVE'), the cakePHP show-me an error:

Re: Which the preview to release the version CakePHP 2.2?

2012-06-26 Thread Lucas Simon Rodrigues Magalhaes
> http://cakephp.lighthouseapp.com/projects/42648-cakephp/milestones/139707-220 > > It is very stable. It's technically in beta, but that doesn't mean much. > > > > > On Tue, Jun 26, 2012 at 10:24 AM, Lucas Simon Rodrigues Magalhaes < > lucass...@gmail.com> wrote:

Re: Which the preview to release the version CakePHP 2.2?

2012-06-26 Thread Lucas Simon Rodrigues Magalhaes
and the 2.2 stable? Em terça-feira, 26 de junho de 2012 12h17min41s UTC-3, Justin Edwards escreveu: > > https://github.com/cakephp/cakephp/tree/2.2 > https://github.com/cakephp/cakephp/zipball/2.2 > > > On Tue, Jun 26, 2012 at 8:58 AM, Lucas Simon Rodrigues Magalhaes <

Which the preview to release the version CakePHP 2.2?

2012-06-26 Thread Lucas Simon Rodrigues Magalhaes
Hello there! I have a system in CakePHP 1.2.7, and I wanna migrate to the new version. So I prefer waiting the new release, than migrate to CakePHP 2.1 -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cak

Re: How to do a REST WS?

2012-06-22 Thread Lucas Simon Rodrigues Magalhaes
; * > REST URLs shouldn't contain any verbs, like add, edit, delete, etc, only > nouns. The verbs are implicit in the method, ie. POST vs PUT vs GET vs > DELETE, rather than all using POST. > > This is an HTTP based API, and there's nothing wrong with that! But just >

How to do a REST WS?

2012-06-21 Thread Lucas Simon Rodrigues Magalhaes
Hello I need to build an application in Webservice to return data for a particular billing. I thought about using REST to provide data json / xml instead of nusoap, but I'm sure how to do it. First I'm using cakePHP version 1.3, and following the cake book [1]. According to according to the book

Re: MeioUpload 4.0 and CakePHP 2.1

2012-05-27 Thread Lucas Elias
Use "type": Example: Form->create('Users', *array('type' => 'file')* );?> Em quinta-feira, 29 de março de 2012 01h22min03s UTC-3, Thiago Silva escreveu: > > Hello, > > I'm trying to use MeioUpload 4.0 with CakePHP 2.1, but I'm getting > this error: > > Warning (2): finfo_file(A): failed to

Re: Wich command use in cakePHP 2.X similar to Dispatcher::baseUrl()?

2011-12-19 Thread Lucas Simon Rodrigues Magalhaes
Thks @José Lorenzo It works. And i tested also here ?> On 18 dez, 22:04, Lucas Simon Rodrigues Magalhaes wrote: > i don't find in cake book > > http://stackoverflow.com/questions/8555607/wich-command-use-in-cakeph... -- Our newest site for the community: CakePHP Vide

Wich command use in cakePHP 2.X similar to Dispatcher::baseUrl()?

2011-12-18 Thread Lucas Simon Rodrigues Magalhaes
i don't find in cake book http://stackoverflow.com/questions/8555607/wich-command-use-in-cakephp-2-x-similar-to-dispatcherbaseurl -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others

CakePHP 2.0.2 Auth

2011-11-24 Thread Lucas Amiune
Hi, everyone. I'm new on cake and i decided to start from de 2.0.2. And I'm kind of stuck in how users can login in my app. This are my "Auth files": AppController class AppController extends Controller { public $components = array( 'Session', 'Auth'=>array( '

How to download multiples files with cake?

2011-11-18 Thread Lucas Simon Rodrigues Magalhaes
Hii, I have a doubt, how to download multiples files with cake. I have in my directory webroot/files, four files. form1.pdf,form2.pdf,form3.pdf,form4.pdf In my view i have this code: Formulários Form- >create('Formulario',array('target'=>'_blank'));?> Form->input('Formulario.selecionarFormulario

Re: Which is the better IDE for cakePHP?

2011-09-30 Thread Lucas Simon Rodrigues Magalhaes
I like, and used the Komodo-edit free. look this and setup the configure the cakephp: http://community.activestate.com/faq/how-setup-and-use-cakephp-komodo other option, is eclipse-ide On 24 ago, 23:33, sue wrote: > Hi all...i'm really new in cakephp...so,could somebody suggest d > better IDE fo

Re: set paginator last page as default?

2011-04-20 Thread lucas
Hi Jeremy, the data can´t be ordered beacuse it´s a business account data (extracted from a database view) and i need to show it by created date with all the debts, payments and the actual balance (is because of the balance that i can´t let the user to specify some kind of order). Lucas. On 19

Re: set paginator last page as default?

2011-04-18 Thread lucas
to the last page. whatever that > last page's number is. > That is the way Controller::paginate works in 1.3 > > > > > > > > On Mon, Apr 18, 2011 at 3:42 PM, lucas wrote: > > I can´t do that because the data can´t be ordered. I need it in that > > w

Re: set paginator last page as default?

2011-04-18 Thread lucas
> Lep pozdrav, Tilen Majerlehttp://majerle.eu > > 2011/4/18 Jeremy Burns | Class Outfit > > > > > > > > > Sort the data in reverse order? > > > Jeremy Burns > > Class Outfit > > > jeremybu...@classoutfit.com > >http://www.classoutfit.com &g

set paginator last page as default?

2011-04-18 Thread lucas
Hi people, is it possible to set as default the last page of the paginated data from the controller? Is there an option available to do this? thanks in advance! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://a

Re: Find Output Thoughts (why the not remove ['ModelName'])

2010-03-25 Thread Lucas Costa
5 Mrz., 10:45, "rich...@home" wrote: > > > I'm with WebbedIT on this one. > > > And besides, you can always do something like the following in your > > controller: > > > $data = $this->Article->read(null, $id); > > $article = $data['Articl

Find Output Thoughts (why the not remove ['ModelName'])

2010-03-24 Thread Lucas Costa
Hi. I've been working with Cake for a while and something always comes up to my mind when writing a view, which I'll share: We all know how Cake spits a simple find('first'), right: Array ( [ModelName] => Array ( [id] => 83 [field1] => value1 ) [Ass

Cakephp Job in Cordoba, Argentina

2010-03-08 Thread Lucas Caro
Hi all, Triple Smart (http://www.triplesmart.com) is looking for CakePHP programmers for freelance projects or a full/part-time jpb in Córdoba, Argentina. The workplace would be our offices near ciudad universitaria, and you should also have experience with XHTML/CSS and jQuery, and be open to lea

Different logic and view for each group

2010-02-25 Thread Lucas Lobosque
Lets say that in an application we have two groups: buyers and sellers. (In an ACL setup like the cookbook example tutorial). When the seller add a product, he can see all comments posted by potential buyers and add images thru the product url (/product/28) When the seller gives his product url to

Re: Error after adding database.php file to project (happening on Windows and Ubuntu)

2010-01-30 Thread Lucas Loss
t 5:59 AM, Fran Iglesias wrote: > Hi > > El 21/01/2010, a las 23:44, Lucas Loss escribió: > > > 4. Then I've renamed the file database.php.default to database.php; >> 5. Back to the browser I reloaded the page and noticed a new sentence: >> > > I miss

Error after adding database.php file to project (happening on Windows and Linux - Ubuntu)

2010-01-21 Thread Lucas Loss
cakephp on Windows and I believed that it was a Windows problem because a friend of mine tried the same steps on his machine (Ubuntu) and didn't get this error. So I installed Ubuntu and after having everything ready to start studying cakephp, I got the same problem! Any ideas on how to solve

Error after adding database.php file to project (happening on Windows and Ubuntu)

2010-01-21 Thread Lucas Loss
dows and I believed that it was a Windows problem because a friend of mine tried the same steps on his machine (Ubuntu) and didn't get this error. So I installed Ubuntu and after having everything ready to start studying cakephp, I got the same problem! Any ideas on how to solve this? C

Sanitize::clean on AfterFind on AppModel

2009-10-23 Thread Lucas Costa
Hello fellows, what do you think about putting an Sanitize::clean on the AfterFind of every Model? Wouldn't that ensure same security and a lot less code? What would be the down side? Regards... --~--~-~--~~~---~--~~ You received this message because you are sub

Re: Need advice/tips for sending mass emails with CakePHP

2009-07-31 Thread Lucas Costa
Hi, I've been researching a bit with the same pupose but teknoid in the IRC channel tipped me that unless I was building a complete mass mailing solution and all the "stuff" that comes with it, it would be better to hire an existing service. Then I said what would "stuff" be and here is his respo

Re: SecurityComponent::requireAuth : when?

2009-07-28 Thread Lucas Costa
or if it is already happening without setting it. Regards On Jul 27, 4:13 pm, Jaydeep Dave wrote: > Hi Lucas, > I think it blocks the page using "http authentication method" (similar to > .htpasswd) > > > > On Mon, Jul 27, 2009 at 10:34 AM, Lucas Costa wrote: >

SecurityComponent::requireAuth : when?

2009-07-27 Thread Lucas Costa
nk you all. Lucas Costa --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email t

HABTM saving duplicates

2009-06-12 Thread Lucas Prim
Hi all! I was starting to work with some HABTM relations and I've found the following problem: Whenever I try to save the relationship between the models I'm using (subject,teacher) more than one time, cake creates duplicate entries into the subjects_teachers table. I've created an unike key so i

Re: Create in not resetting my model

2009-05-20 Thread lucas
//- I have also seen suggestions for: $this->Parametername->create( $this->data['Parametername'] ); $this->Parametername->save(); // i already change that! thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

Re: Create in not resetting my model

2009-05-19 Thread lucas
solved! i don´t know if this is the best way, but assign false to the ID worked: $this->data['Parametername']['ParameternameID'] = false; this is suppose that the create function do this, but it doesn´t for some reason that i´m not able to see. --~--~-~--~~~---~--~--

Create in not resetting my model

2009-05-19 Thread lucas
Hi, in my edit method, sometimes i need to update my fields and sometimes i need to add new ones. I´m trying to use $this->myModel- >create() to reset the fields when i need to insert a new row, but nothing happens, i always get the last ID updated... so the foreach is updating the last row update

Re: Add "created" field to HABTM join tables

2009-05-13 Thread Lucas Velasco
Hi Brendon, Same problem even after modifying the datetime field to Allow Null and default to Null. Any ideas? Thanks. Lucas On May 8, 1:57 am, Brendon Kozlowski wrote: > The `created` field must (1)be a datetime field, (2)NULL must be > allowed, (3)and default to NULL value.  Onc

Re: Problems with hidden input on submit

2009-05-07 Thread lucas
this are the fragments: -view: hidden('collparamIDS',array('value'=> $paramTestcollparameterID));?> -edit action: $this->set('paramTestcollparameterID', $parameterTestcollparamID); -html code: i´m loading all the hidden inputs in the same way, and accessing them the same way

Problems with hidden input on submit

2009-05-07 Thread lucas
Hi, i have this problem that is killing me slowly jeje, in my view a have about 14 or 15 hidden inputs cause i need them in the edit action. But when i submit the page, one of them is not submitted and the rest are submitted fine. I checked the html code and looks fine, so the hidden input is not

Re: Using javascritp variables in cakephp

2009-03-19 Thread lucas
Brian, you were right! I thought that when you call a php code inside a javascript code, it will create a data stream to the server and execute that part of the php code there... wrong! i wrote inside the append function the html code that i wanted as you tell me and that worked fine!!! thanks f

Re: Using javascritp variables in cakephp

2009-03-18 Thread lucas
Hi Brian, thanks for your answer. The matter here is that i can generate the elements dinamically but i´m not able to generate their names dinamically, all the new input fields generated has the same name and same ID... so, i want to to concatenate in the name of the input field a variable number

Using javascritp variables in cakephp

2009-03-18 Thread lucas
Hi people! i´m generating some input fileds dinamically with jquery... to generate the input fields i am using this code: $ ("#newFormField").append('input('',array ('label'=>'Nombre'));?>'); the problem is that i need to generate the name and the id of the input using some jquery global varia

Re: Data validation doesn't work

2009-01-03 Thread Lucas
Hi gearvOsh, Unfortunately nothing happens again :( I tryed with both options (required = true and notEmpty rule) and nothing happens. More tips? Thanks! On 29 dez 2008, 23:24, gearvOsh wrote: > You either need to have: > > required = true > > Or use the notEmpty rule. > > http://book.cakephp

Re: Data validation doesn't work

2009-01-03 Thread Lucas
Hi gearvOsh, Unfortunately nothing happens again :( I tryed with both options (required = true and notEmpty rule) and nothing happens. More tips? Thanks! On 29 dez 2008, 23:24, gearvOsh wrote: > You either need to have: > > required = true > > Or use the notEmpty rule. > > http://book.cakephp

Data validation doesn't work

2008-12-29 Thread Lucas
Hi guys, I'm trying to use data validation on my model but I don't find where is my error. When I leave a form field empty, nothing happens (no message erros). But when fill all fields, all data is saved to database. Any skilled guy could help me? Below are some pieces of my code. If you need an

Re: how to set the root folder

2008-07-17 Thread Lucas Caro
try with: Configure::write('App.base', ''); inside config/core.php good luck. On Jul 16, 8:49 am, Adam Royle <[EMAIL PROTECTED]> wrote: > There should be a .htaccess file in the level above your app folder > which uses mod_rewrite to forward the request app/webroot/index.php > > So if your folder

Cakephp and PostgreSQL

2007-08-23 Thread michael lucas
Hi, I'm using cakephp with mysql right now, which is really simple also due to mysql "describe" function that tell cakephp how my tables look. I know that PostgreSQL lack "describe" function. So when I change my dbms to PostgreSQL will it mean that I have to specify in some cakephp configuration

Paginator template in cakephp 1.2

2007-08-19 Thread michael lucas
Hi, I was wondering if there was a simple way to set your own style to standard paginator element that appears on each page (i mean the line " Previous | 1 | 2 | 3 | Next"). Can this be done by creating some template file and applying it to paginator element? Or do I have to modify paginator clas

cake-php@googlegroups.com

2007-08-17 Thread michael lucas
I'm pretty sure this problem is related to some basic setting, but I couldn't solve it myself. A lot examples of valid cakephp templates code use this kind of php openning tag: http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---