Welcome Guest, Not a member yet? Register   Sign In
jumping into the pool: 1st App
#11

[eluser]number1chump[/eluser]
[quote author="Bart v B" date="1286852051"][quote author="number1chump" date="1286850826"]certainly! anything is a better idea since I basically had no clue about how the syntax had to look like. I am studying yours now to have it sink in my hollow head.

thank you a lot

Al

update 4 minutes later:

so this "__" that you wrote is part of the syntax for the constructor then.

I follow you into how you are loading my Model code, alright, but the question, why do you need to create a construct ? then I see that you load the view alright, and then you create a function where you say, "we want to do something with the model. That leaves it too abstract for me, how do you mean "do something"?

And I still have the query of what do you do when you are creating another project, where do you create it so that you can distribute your MVC files, do you create subfolders inside each of the M and V and C folders ?

thank you gracias[/quote]

with the __construct() your model is loaded in the whole Login object.
So when you have more functions say for example, you want to check if the user has admin rights, you can do that in the same model. It's difficult to explain because i am dutch.

doSomething() can be a function that checks that admin rights for you.

When is see the reply above me, i think you are searching more like modules.
I can not find it very quick, but that is also an option what i use a lot.
http://www.pure-intuitie.nl/webshop/ for example, is a module (in development Wink ).
When you drop /webshop/ then it is just a CI with MVC as normal.[/quote]

========

thank you that is cool, your English is great (but I understand Dutch too, je kunt ook in het Vlaams schrijven) I ll have a look at that links

bedankt!

Al
#12

[eluser]number1chump[/eluser]
[quote author="Bart v B" date="1286852485"][quote author="adhardy213" date="1286852207"]Yes I would probably do a fresh install of CI everytime I had a new client. Unless I was doing 2 websites for the same client with shared logic.[/quote]

Or just put your codeigniter with your system folder outside the htdocs folder and put it on a safe place else where on your server.. And the application folder inside your htdocs You only need to change a few paths to where you your ci/system is standing Wink[/quote]

===========

alright, I see, cause I could not imagine that one would have to install the whole thing every time you do a project, well in my case it is not that I would finish them that quickly, rather a lot of balls of paper to the bin before I get a nice draft, but it was important to understand that.

thank you
#13

[eluser]Bart v B[/eluser]
[quote author="number1chump" date="1286852533"][quote author="Bart v B" date="1286852051"][quote author="number1chump" date="1286850826"]certainly! anything is a better idea since I basically had no clue about how the syntax had to look like. I am studying yours now to have it sink in my hollow head.

thank you a lot

Al

update 4 minutes later:

so this "__" that you wrote is part of the syntax for the constructor then.

I follow you into how you are loading my Model code, alright, but the question, why do you need to create a construct ? then I see that you load the view alright, and then you create a function where you say, "we want to do something with the model. That leaves it too abstract for me, how do you mean "do something"?

And I still have the query of what do you do when you are creating another project, where do you create it so that you can distribute your MVC files, do you create subfolders inside each of the M and V and C folders ?

thank you gracias[/quote]

with the __construct() your model is loaded in the whole Login object.
So when you have more functions say for example, you want to check if the user has admin rights, you can do that in the same model. It's difficult to explain because i am dutch.

doSomething() can be a function that checks that admin rights for you.

When is see the reply above me, i think you are searching more like modules.
I can not find it very quick, but that is also an option what i use a lot.
http://www.pure-intuitie.nl/webshop/ for example, is a module (in development Wink ).
When you drop /webshop/ then it is just a CI with MVC as normal.[/quote]

========

thank you that is cool, your English is great (but I understand Dutch too, je kunt ook in het Vlaams schrijven) I ll have a look at that links

bedankt!

Al[/quote]

Hey ene Belg! Wink
Als je hulp nodig hebt in het Nederlands/Bels/vlaams dan stuur maar een pm Wink
Youre welcome!
#14

[eluser]number1chump[/eluser]
thank you, well I am actually Spanish but I can understand Dutch. Long ago I grabbed a book of Flemish and when I finished, I could read Dutch, so it stayed like that.

==========================

Ik help je op weg met het vinden van een oplossing om je leven een doel te geven en je een positieve draai te geven en doe dat met hart en ziel.

Interesting content! good website!

==========================

best greetings

Al
#15

[eluser]Bart v B[/eluser]
[quote author="number1chump" date="1286853211"]thank you, well I am actually Spanish but I can understand Dutch. Long ago I grabbed a book of Flemish and when I finished, I could read Dutch, so it stayed like that.

best greetings

Al[/quote]

Ok then..
Then when there are more questions i wil try it in English to explaine Wink
#16

[eluser]Bart v B[/eluser]
[quote author="number1chump" date="1286853211"]thank you, well I am actually Spanish but I can understand Dutch. Long ago I grabbed a book of Flemish and when I finished, I could read Dutch, so it stayed like that.

==========================

Ik help je op weg met het vinden van een oplossing om je leven een doel te geven en je een positieve draai te geven en doe dat met hart en ziel.

Interesting content! good website!

==========================

best greetings

Al[/quote]

It is not my website. I am only building the application for a friend of my. Wink
All credits to the content goes to him..
I am more into the technics how the site works and helping him with that.

Bypassing other topics here i found the url for modules:
Modules
#17

[eluser]cahva[/eluser]
Just a quick tip. If you are already using __construct() as contstructor(PHP5 style constructor), you might as well use parent::__construct() instead of parent::Controller() (or whatever class you are extending from)

Code:
function __construct()
{
    parent::__construct();
}
#18

[eluser]number1chump[/eluser]
yes, pretty well timed your tip because it is precisely what I was reading in the book about constructors just now, it said that its name is always, "construct",




Theme © iAndrew 2016 - Forum software by © MyBB