Joseph L. LeBlanc
homeportfoliojoomlabiocontactblog
articles
guides
tutorials
all
forum
Subscribe in NewsGator Online

Learning Joomla! for the first time? Buy the Joomla! 1.5 Essential training CD-ROM or watch it on Lynda.com.

 

Welcome to Joseph LeBlanc's Joomla development forum. This forum is primairly intended to discuss the development of components I've authored, such as the podcasting suite and Daily Message tutorial. Although I happily answer general questions about Joomla, you may get quicker answers by searching the Joomla forums.

Due to spam abuse, you must register to post in the forums. However, you are allowed to browse the forums without registration. Commercially-oriented, off-topic messages are $100 per word, thank you for understanding!



FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
Re:how to use php in the joomla environment? (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:how to use php in the joomla environment?
#2045
cimerol (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The book & integrating PHP into Joomla! 5 Months, 4 Weeks ago Karma: 0  
Hi,

Been a programmer for many years now, but am new to Joomla.

I have a client whose current site is heavily coded with PHP and now he wants to integrate Joomla so he can maintain layouts / content himself.

Anyone know of a resource they could point me to? I've read Joomla books but none touch on this subject.

I have not read your book, but if this is discussed, i'd sure purchase it.

Thanks.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2046
jleblanc (Admin)
Admin
Posts: 646
graph
User Online Now Click here to see the profile of this user
Re:The book & integrating PHP into Joomla! 5 Months, 4 Weeks ago Karma: 15  
Gald you stopped by! My book is mainly about creating extensions from scratch using Joomla!'s native APIs. However, the nice thing about Joomla! is that you can start your code at components/com_yourcomponent/yourcomponent.php and pretty much do straight PHP from there. If the old application is trying to do anything like manage sessions or write custom HTTP/HTML headers, you'll need to strip that stuff out and hook into Joomla!'s framework. It really depends on the PHP app, but a lot of popular Joomla! components started out as existing PHP projects.

Good luck with your client!
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2161
cimerol (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:The book & integrating PHP into Joomla! 3 Months, 3 Weeks ago Karma: 0  
Thank you.

I managed to get through everything and it works great. Here's my snag and i'm not sure if this is a book topic or not.

When you create a new account via Joomla!, it only collected your Name, email & password. What if i want to collect a persons address, state & zip?

Thanks,

Norm
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2169
jleblanc (Admin)
Admin
Posts: 646
graph
User Online Now Click here to see the profile of this user
Re:The book & integrating PHP into Joomla! 3 Months, 3 Weeks ago Karma: 15  
For that, you'll want to create or use another extension. The Community Builder component does this sort of thing.

You could use the core user component, then have it redirect to a custom component on login where you could check to see if the address, state, and zip have been entered.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2320
mark_weatherill (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
how to use php in the joomla environment? 1 Month, 3 Weeks ago Karma: 0  
Hello Joseph

i am new to joomla and am shortly to start in helping to revamp a customer's website to include a CMS. But i'd like to retain the ability to integrate our own php into the project either alongside or interwoven with joomla. How can this be done please? Any suggestions, general or specific, gratefully received.
Cheers,

Mark Weatherill.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2335
jleblanc (Admin)
Admin
Posts: 646
graph
User Online Now Click here to see the profile of this user
Re:how to use php in the joomla environment? 1 Month, 2 Weeks ago Karma: 15  
Hi Mark,

The simplest possible way of doing this would be to create your own component. To do so, go to the 'components' folder, then create a folder in the format of 'com_yourcomponentnamehere'. Within this folder, create a file named yourcomponentnamehere.php. At the top of this file, add this code:

Code:

defined( '_JEXEC' ) or die( 'Restricted access' );
(Add this line to the top of all your PHP files to prevent users from executing them directly.) After that, you can write whatever you need. You can execute the component by going to index.php?option=com_yourcomponentnamehere.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop